Skip to content

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

vsandstrom is testing out GitHub Actions πŸš€

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

Workflow file for this run

name: compile
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
on:
push:
tags:
- v*
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
- name: install dependencies and set paths
run: |
export DIR="/Users/runner/work/Havregryn/Havregryn/target/bundled/"
brew install mingw-w64
- name: install rust toolchains
run: |
echo $DIR
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
rustup target add x86_64-pc-windows-gnu
- name: compile intel mac and zip
run: |
cargo xtask bundle havregryn --target=x86_64-apple-darwin --release
cd $DIR
zip -r Havregryn_macOS_intel.vst3.zip Havregryn.vst3
cd -
- name: compile arm mac and zip
run: |
cargo xtask bundle havregryn --target=aarch64-apple-darwin --release
cd $DIR
zip -r Havregryn_macOS_arm.vst3.zip Havregryn.vst3
cd -
- name: compile windows and zip
run: |
cargo xtask bundle havregryn --target=x86_64-pc-windows-gnu --release
cd $DIR
zip -r Havregryn_Win.vst3.zip Havregryn.vst3
cd -
- name: create release
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'