mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-06 04:36:10 +02:00
add aarch64-apple-darwin builds to GitHub CI
I'm not sure how to build for Apple Silicon from a Linux host, but it seems to work as-is from an x86_64 macOS host. Alas, GitHub doesn't yet provide Apple Silicon hosts to run these binaries, and Cross doesn't yet support virtualizing them either.
This commit is contained in:
parent
4d6dfc4eed
commit
197ad57261
|
@ -209,3 +209,22 @@ jobs:
|
||||||
# Build the example.
|
# Build the example.
|
||||||
- run: make -f Makefile.testing example
|
- run: make -f Makefile.testing example
|
||||||
working-directory: ./c
|
working-directory: ./c
|
||||||
|
|
||||||
|
# Note that this jobs builds AArch64 binaries from an x86_64 host.
|
||||||
|
build_apple_silicon:
|
||||||
|
name: build for Apple Silicon
|
||||||
|
runs-on: macOS-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: aarch64-apple-darwin
|
||||||
|
override: true
|
||||||
|
- name: build blake3
|
||||||
|
run: cargo build --target aarch64-apple-darwin
|
||||||
|
- name: build b3sum
|
||||||
|
run: cargo build --target aarch64-apple-darwin
|
||||||
|
working-directory: ./b3sum
|
||||||
|
|
Loading…
Reference in New Issue