Skip to content

Commit

Permalink
Add no_std to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
domenukk committed Apr 8, 2023
1 parent a98aef8 commit 0d14d5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
# Add toolchain for no_std tests
- run: rustup target add aarch64-unknown-none
- run: cargo build --all-targets
# Run tests
- name: Run tests
Expand All @@ -49,6 +51,8 @@ jobs:
run: cargo test --test debugger_visualizer --features "url/serde,url/debugger_visualizer" -- --test-threads=1
- name: Test `no_std` support
run: cargo test --no-default-features --features=alloc
- name: Build `aarch64-unknown-none` with `no_std`
run: cargo +nightly build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release

WASM:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0d14d5a

Please sign in to comment.