Skip to content

Commit e16eb2b

Browse files
committed
Only test aarch64 on ubuntu
1 parent 29bfcf7 commit e16eb2b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
# Add toolchain for no_std tests
3737
- run: rustup toolchain install nightly
38-
- run: rustup target add aarch64-unknown-none
38+
- name: Build `aarch64-unknown-none` with `no_std`
39+
if: |
40+
matrix.os == 'ubuntu-latest' &&
41+
matrix.rust == 'nightly'
42+
- run: rustup target add aarch64-unknown-none && rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu && cargo +nightly build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc,unstable
3943
- run: cargo build --all-targets
4044
# Run tests
4145
- name: Run tests
@@ -52,8 +56,6 @@ jobs:
5256
run: cargo test --test debugger_visualizer --features "url/serde,url/debugger_visualizer" -- --test-threads=1
5357
- name: Test `no_std` support
5458
run: cargo test --no-default-features --features=alloc,no_std_net
55-
- name: Build `aarch64-unknown-none` with `no_std`
56-
run: cargo +nightly build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc,unstable
5759

5860
WASM:
5961
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)