Add codesigning for macOS vst3 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle and Create Artifact | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Import Certificates | |
if: matrix.os == 'macos-latest' | |
uses: apple-actions/import-codesign-certs@v2 | |
with: | |
p12-file-base64: ${{ secrets.DEV_ID_APP_CERT }} | |
p12-password: ${{ secrets.DEV_ID_APP_CERT_PASSWORD }} | |
- name: Bundle resotool (macOS) | |
if: matrix.os == 'macos-latest' | |
run: rustup target add aarch64-apple-darwin && cargo xtask bundle-universal resotool --release | |
- name: Codesign resotool (macOS) | |
if: matrix.os == 'macos-latest' | |
run: codesign --force -s "${{ secrets.DEV_ID_APP}}" -v ./target/bundled/Resotool.vst3 --deep --strict --options=runtime --timestamp | |
- name: Bundle resotool (Windows and Linux) | |
if: matrix.os != 'macos-latest' | |
run: cargo xtask bundle resotool --release | |
- name: Create Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: resotool_${{ matrix.os }} | |
path: ./target/bundled |