aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authoryvt2022-07-20 14:28:34 +0000
committerBlaž Hrastnik2022-08-02 03:04:09 +0000
commit4461090c3dfb94e74d9d6327988c3b0f70219ae5 (patch)
treec312939c65fac51082e2c9645408d015cf6d0ec6 /.github
parenteef9eff20d7a425817c5dcf662e81cae28861339 (diff)
chore(ci): build binary for aarch64-macos
The tests are conditionally disabled for this target because the x86_64 CI host is unable to run AArch64 binaries. (There is no officially-supported reverse Rosetta 2.)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a83a1423..d8baa3c1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -64,10 +64,12 @@ jobs:
rust: stable
target: x86_64-pc-windows-msvc
cross: false
- # - build: aarch64-macos
- # os: macos-latest
- # rust: stable
- # target: aarch64-apple-darwin
+ - build: aarch64-macos
+ os: macos-latest
+ rust: stable
+ target: aarch64-apple-darwin
+ cross: false
+ skip_tests: true # x86_64 host can't run aarch64 code
# - build: x86_64-win-gnu
# os: windows-2019
# rust: stable-x86_64-gnu
@@ -100,6 +102,7 @@ jobs:
- name: Run cargo test
uses: actions-rs/cargo@v1
+ if: "!matrix.skip_tests"
with:
use-cross: ${{ matrix.cross }}
command: test
@@ -113,7 +116,7 @@ jobs:
args: --release --locked --target ${{ matrix.target }}
- name: Strip release binary (linux and macos)
- if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos'
+ if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos' || matrix.build == 'aarch64-macos'
run: strip "target/${{ matrix.target }}/release/hx"
- name: Strip release binary (arm)