Skip to content

Commit

Permalink
cleanup github action
Browse files Browse the repository at this point in the history
  • Loading branch information
vsandstrom committed Sep 1, 2024
1 parent e74e04c commit 1bab90f
Showing 1 changed file with 28 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'
artifacts: 'Havregryn_macOS_intel.vst3.zip, Havregryn_macOS_arm.vst3.zip, Havregryn_Win.vst3.zip'

0 comments on commit 1bab90f

Please sign in to comment.