Skip to content

Commit

Permalink
Fix no-std check
Browse files Browse the repository at this point in the history
Use no-std target to ensure we don't link to std.
  • Loading branch information
taiki-e committed Feb 19, 2023
1 parent fb7fe0b commit a636da2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Install Rust
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
- run: rustup target add thumbv7m-none-eabi
- name: Install wasm-pack
uses: taiki-e/install-action@wasm-pack
if: startsWith(matrix.os, 'ubuntu')
Expand All @@ -49,7 +50,8 @@ jobs:
run: cargo check -Z features=dev_dep
- run: cargo test
- name: Build with no default features
run: cargo build --no-default-features
# Use no-std target to ensure we don't link to std.
run: cargo build --no-default-features --target thumbv7m-none-eabi
- name: Test wasm
run: wasm-pack test --headless --chrome
if: startsWith(matrix.os, 'ubuntu')
Expand Down

0 comments on commit a636da2

Please sign in to comment.