Skip to content

Commit

Permalink
Switching target for no_std
Browse files Browse the repository at this point in the history
Finally found a target that supports getrandom and has a compiler
toolchain.
  • Loading branch information
ecton committed Sep 12, 2023
1 parent 5e709b4 commit d5cf426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
run: cargo test --all-targets

build-nostd:
name: Build on no_std target (riscv32imc-esp-espidf)
# wasm32-unknown-emscripten is no_std, and it is supported by getrandom
name: Build on no_std target (wasm32-unknown-emscripten)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: riscv32imc-esp-espidf
components: rustc, cargo
- run: cargo build --target riscv32imc-esp-espidf --lib --release --no-default-features
targets: wasm32-unknown-emscripten
- run: cargo build --target wasm32-unknown-emscripten --lib --release

0 comments on commit d5cf426

Please sign in to comment.