Skip to content

Commit 7073957

Browse files
committed
Only checking crate for no_std
1 parent 028424a commit 7073957

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ jobs:
3737
toolchain: ${{ matrix.rust }}
3838
# Add toolchain for no_std tests
3939
- run: rustup toolchain install nightly
40-
- name: Build `aarch64-unknown-none` with `no_std`
40+
- name: Add `aarch64-unknown-none` toolchain for `no_std` tests
4141
if: |
4242
matrix.os == 'ubuntu-latest' &&
4343
matrix.rust == 'nightly'
44-
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
44+
run: rustup target add aarch64-unknown-none && rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
4545
- run: cargo build --all-targets
4646
# Run tests
4747
- name: Run tests
@@ -58,6 +58,11 @@ jobs:
5858
run: cargo test --test debugger_visualizer --features "url/debugger_visualizer,url_debug_tests/debugger_visualizer" -- --test-threads=1
5959
- name: Test `no_std` support
6060
run: cargo test --no-default-features --features=alloc,no_std_net
61+
- name: Build `url` crate for `aarch64-unknown-none` with `no_std`
62+
run: >
63+
cd url
64+
&& cargo +nightly check -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc,unstable
65+
&& cargo +nightly check -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc,no_std_net
6166
6267
WASM:
6368
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)