@@ -64,10 +64,12 @@ jobs:
64 rust: stable
64 rust: stable
65 target: x86_64-pc-windows-msvc
65 target: x86_64-pc-windows-msvc
66 cross: false
66 cross: false
67− # - build: aarch64-macos
67+ - build: aarch64-macos
68− # os: macos-latest
68+ os: macos-latest
69− # rust: stable
69+ rust: stable
70− # target: aarch64-apple-darwin
70+ target: aarch64-apple-darwin
72+ skip_tests: true # x86_64 host can't run aarch64 code
71 # - build: x86_64-win-gnu
73 # - build: x86_64-win-gnu
72 # os: windows-2019
74 # os: windows-2019
73 # rust: stable-x86_64-gnu
75 # rust: stable-x86_64-gnu
@@ -100,6 +102,7 @@ jobs:
101 - name: Run cargo test
103 - name: Run cargo test
102 uses: actions-rs/cargo@v1
104 uses: actions-rs/cargo@v1
105+ if: "!matrix.skip_tests"
104 use-cross: ${{ matrix.cross }}
107 use-cross: ${{ matrix.cross }}
105 command: test
108 command: test
@@ -113,7 +116,7 @@ jobs:
113 args: --release --locked --target ${{ matrix.target }}
116 args: --release --locked --target ${{ matrix.target }}
115 - name: Strip release binary (linux and macos)
118 - name: Strip release binary (linux and macos)
116− if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos'
119+ if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos' || matrix.build == 'aarch64-macos'
117 run: strip "target/${{ matrix.target }}/release/hx"
120 run: strip "target/${{ matrix.target }}/release/hx"
119 - name: Strip release binary (arm)
122 - name: Strip release binary (arm)