Skip to content

Commit 2dcfa14

Browse files
authored
CI: Run test on aarch64-apple-darwin (#947)
1 parent 0042c70 commit 2dcfa14

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
build: [stable, beta, nightly, linux32, macos, aarch64-ios, win32, win64, mingw32, mingw64, windows-2019]
14+
build: [stable, beta, nightly, linux32, macos, aarch64-macos, aarch64-ios, win32, win64, mingw32, mingw64, windows-2019]
1515
include:
1616
- build: stable
1717
os: ubuntu-latest
@@ -33,6 +33,10 @@ jobs:
3333
os: macos-latest
3434
rust: stable
3535
target: x86_64-apple-darwin
36+
- build: aarch64-macos
37+
os: macos-14
38+
rust: stable
39+
target: aarch64-apple-darwin
3640
- build: aarch64-ios
3741
os: macos-latest
3842
rust: stable
@@ -86,6 +90,7 @@ jobs:
8690
sudo apt-get update
8791
sudo apt-get install g++-multilib
8892
if: matrix.build == 'linux32'
93+
- uses: Swatinem/rust-cache@v2
8994
- run: cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }}
9095
- run: cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --release
9196
- run: cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --features parallel
@@ -103,6 +108,7 @@ jobs:
103108
rustup component add rust-src --toolchain nightly
104109
rustup default nightly
105110
shell: bash
111+
- uses: Swatinem/rust-cache@v2
106112
- run: cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos
107113
- run: cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos --release
108114
- run: cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos --features parallel
@@ -120,6 +126,7 @@ jobs:
120126
sudo dpkg -i cuda-keyring_1.0-1_all.deb
121127
sudo apt-get update
122128
sudo apt-get -y install cuda-minimal-build-11-8
129+
- uses: Swatinem/rust-cache@v2
123130
- name: Test 'cudart' feature
124131
shell: bash
125132
run: |
@@ -157,6 +164,7 @@ jobs:
157164
rustup toolchain install stable --no-self-update --profile minimal --component rustfmt
158165
rustup default stable
159166
shell: bash
167+
- uses: Swatinem/rust-cache@v2
160168
- run: cargo clippy
161169

162170
rustfmt:
@@ -169,4 +177,5 @@ jobs:
169177
rustup toolchain install stable --no-self-update --profile minimal --component rustfmt
170178
rustup default stable
171179
shell: bash
180+
- uses: Swatinem/rust-cache@v2
172181
- run: cargo fmt -- --check

0 commit comments

Comments
 (0)