vsandstrom is testing out GitHub Actions π #38
Workflow file for this run
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: compile | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: [push] | |
jobs: | |
compilemac: | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- run: | | |
export DIR="/Users/runner/work/Havregryn/Havregryn/target/bundled/" | |
brew install mingw-w64 | |
rustup target add x86_64-apple-darwin | |
rustup target add aarch64-apple-darwin | |
rustup target add x86_64-pc-windows-gnu | |
cargo xtask bundle havregryn --target=x86_64-apple-darwin --release | |
cd $DIR | |
zip -r Havregryn_macOS_intel.vst3.zip Havregryn.vst3 | |
cd - | |
cargo xtask bundle havregryn --target=aarch64-apple-darwin --release | |
cd $DIR | |
zip -r Havregryn_macOS_arm.vst3.zip Havregryn.vst3 | |
cd - | |
cargo xtask bundle havregryn --target=x86_64-pc-windows-gnu --release | |
cd $DIR | |
zip -r Havregryn_Win.vst3.zip Havregryn.vst3 | |
cd - | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: '/Users/runner/work/Havregryn/Havregryn/target/bundled/Havregryn_macOS_intel.vst3.zip, /Users/runner/work/Havregryn/Havregryn/target/bundled/Havregryn_macOS_arm.vst3.zip, /Users/runner/work/Havregryn/Havregryn/target/bundled/Havregryn_Win.vst3.zip' |