feat: build for aarch64-apple-darwin, closes #62

Build for aarch64-apple-darwin in the create_release.sh script, and the GitHub workflow action
This commit is contained in:
Jack Wills
2025-06-16 16:35:18 +00:00
parent 6edf99e084
commit e7114d2f5e
2 changed files with 28 additions and 4 deletions
+11 -1
View File
@@ -22,6 +22,9 @@ jobs:
- target: arm-unknown-linux-musleabihf
output_name: linux_armv6.tar.gz
- target: aarch64-apple-darwin
output_name: apple_darwin_aarch64.tar.gz
- target: x86_64-pc-windows-gnu
output_name: windows_x86_64.zip
@@ -38,8 +41,15 @@ jobs:
- name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross
# Build binary
# Build binary for arm MacOS using Docker Zigbuild
- name: build
if: matrix.target == 'aarch64-apple-darwin'
run: |
docker run --rm -v $(pwd):/io -w /io ghcr.io/rust-cross/cargo-zigbuild cargo zigbuild --release --target aarch64-apple-darwin
# Build all other targets using Cross
- name: build
if: matrix.target != 'aarch64-apple-darwin'
run: cross build --target ${{ matrix.target }} --release
# Compress the output