-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.34 KB
/
github-actions-demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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'