Skip to content

Commit

Permalink
Fix mac release script
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Jun 3, 2024
1 parent 53820ea commit 4674d0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
run: make release_lnx
- name: Build for macOS
if: matrix.os == 'macOS-latest'
run: make release_mac
run: |
rustup target add x86_64-apple-darwin
make release_mac_x86_64
make release_mac_aarch64
- name: Build for Windows
if: matrix.os == 'windows-latest'
run: make release_win
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ release_win:
cargo build --release --target=x86_64-pc-windows-msvc
7z a ${BIN_NAME}-v${VERSION}-x86_64-win.zip target/x86_64-pc-windows-msvc/release/${BIN_NAME}.exe

release_mac:
release_mac_x86_64:
cargo build --release --target=x86_64-apple-darwin
zip -j ${BIN_NAME}-v${VERSION}-x86_64-mac.zip target/x86_64-apple-darwin/release/${BIN_NAME}

release_mac_aarch64:
cargo build --release --target=aarch64-apple-darwin
zip -j ${BIN_NAME}-v${VERSION}-aarch64-mac.zip target/aarch64-apple-darwin/release/${BIN_NAME}

0 comments on commit 4674d0c

Please sign in to comment.