Skip to content

vsandstrom is testing out GitHub Actions πŸš€ #35

vsandstrom is testing out GitHub Actions πŸš€

vsandstrom is testing out GitHub Actions πŸš€ #35

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: '${DIR}Havregryn_macOS_intel.vst3.zip, ${DIR}Havregryn_macOS_intel.vst3.zip, ${DIR}Havregryn_macOS_intel.vst3.zip'