aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2021-10-21 18:16:03 -0400
committerJack O'Connor <[email protected]>2021-10-21 18:58:32 -0400
commit197ad572619a2ec4049fb3a5bb8d4d7a271a01c4 (patch)
tree43af401ddd5fe249033e81cd15a3265fe54993b0 /.github
parent4d6dfc4eedbb2af893bf2327e044f3cf2efef594 (diff)
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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 715fe15..26c670c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -209,3 +209,22 @@ jobs:
# Build the example.
- run: make -f Makefile.testing example
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