diff --git a/.github/workflows/github-actions-demo.yaml b/.github/workflows/compile_plugin.yaml similarity index 51% rename from .github/workflows/github-actions-demo.yaml rename to .github/workflows/compile_plugin.yaml index 858dfc3..72d3468 100644 --- a/.github/workflows/github-actions-demo.yaml +++ b/.github/workflows/compile_plugin.yaml @@ -1,6 +1,9 @@ name: compile run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] +on: + push: + tags: + - v* jobs: compilemac: runs-on: macos-latest @@ -12,27 +15,34 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - - run: | + + - 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: | 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 - - - 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 + zip -r Havregryn_macOS_intel.vst3.zip ${DIR}Havregryn.vst3 + + - name: compile arm mac and zip + run: | + cargo xtask bundle havregryn --target=aarch64-apple-darwin --release + zip -r Havregryn_macOS_arm.vst3.zip ${DIR}Havregryn.vst3 + + - name: compile windows and zip + run: | + cargo xtask bundle havregryn --target=x86_64-pc-windows-gnu --release + zip -r Havregryn_Win.vst3.zip ${DIR}Havregryn.vst3 + + - 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' \ No newline at end of file + artifacts: 'Havregryn_macOS_intel.vst3.zip, Havregryn_macOS_arm.vst3.zip, Havregryn_Win.vst3.zip' \ No newline at end of file