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.)
pull/3302/head
yvt 2 years ago committed by Blaž Hrastnik
parent eef9eff20d
commit 4461090c3d

@ -64,10 +64,12 @@ jobs:
rust: stable rust: stable
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
cross: false cross: false
# - build: aarch64-macos - build: aarch64-macos
# os: macos-latest os: macos-latest
# rust: stable rust: stable
# target: aarch64-apple-darwin target: aarch64-apple-darwin
cross: false
skip_tests: true # x86_64 host can't run aarch64 code
# - build: x86_64-win-gnu # - build: x86_64-win-gnu
# os: windows-2019 # os: windows-2019
# rust: stable-x86_64-gnu # rust: stable-x86_64-gnu
@ -100,6 +102,7 @@ jobs:
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
if: "!matrix.skip_tests"
with: with:
use-cross: ${{ matrix.cross }} use-cross: ${{ matrix.cross }}
command: test command: test
@ -113,7 +116,7 @@ jobs:
args: --release --locked --target ${{ matrix.target }} args: --release --locked --target ${{ matrix.target }}
- name: Strip release binary (linux and macos) - 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" run: strip "target/${{ matrix.target }}/release/hx"
- name: Strip release binary (arm) - name: Strip release binary (arm)

Loading…
Cancel
Save