Skip to content

Merge pull request #8 from mobile-bungalow/ci #9

Merge pull request #8 from mobile-bungalow/ci

Merge pull request #8 from mobile-bungalow/ci #9

Workflow file for this run

name: Test
on: [push]
jobs:
build_mac:
runs-on: macos-latest
environment: build # macos build env
steps:
- uses: actions/checkout@v4
- name: Install the Apple certificate and provisioning profile
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: |
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin, x86_64-apple-darwin
- uses: Swatinem/rust-cache@v2
- name: Build and test
run: |
cargo install just
just release
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: macos-build
path: target/release/TweakShader.plugin
if-no-files-found: error
build_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build and test
run: |
cargo install just
just release
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: win-build
path: target/release/TweakShader.aex
if-no-files-found: error