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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user