Skip to content

Commit 4674d0c

Browse files
committed
Fix mac release script
1 parent 53820ea commit 4674d0c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
run: make release_lnx
3333
- name: Build for macOS
3434
if: matrix.os == 'macOS-latest'
35-
run: make release_mac
35+
run: |
36+
rustup target add x86_64-apple-darwin
37+
make release_mac_x86_64
38+
make release_mac_aarch64
3639
- name: Build for Windows
3740
if: matrix.os == 'windows-latest'
3841
run: make release_win

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ release_win:
2828
cargo build --release --target=x86_64-pc-windows-msvc
2929
7z a ${BIN_NAME}-v${VERSION}-x86_64-win.zip target/x86_64-pc-windows-msvc/release/${BIN_NAME}.exe
3030

31-
release_mac:
31+
release_mac_x86_64:
3232
cargo build --release --target=x86_64-apple-darwin
3333
zip -j ${BIN_NAME}-v${VERSION}-x86_64-mac.zip target/x86_64-apple-darwin/release/${BIN_NAME}
34+
35+
release_mac_aarch64:
36+
cargo build --release --target=aarch64-apple-darwin
37+
zip -j ${BIN_NAME}-v${VERSION}-aarch64-mac.zip target/aarch64-apple-darwin/release/${BIN_NAME}

0 commit comments

Comments
 (0)