-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (35 loc) · 1.01 KB
/
nostd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow checks whether the library is able to run without the std
# library. See `check.yml` for information about how the concurrency
# cancellation and workflow triggering works.
name: no-std
permissions:
contents: read
on:
push:
branches: [ main, release/* ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
nostd:
runs-on: ubuntu-latest
name: ${{ matrix.target }}
strategy:
matrix:
target: [ wasm32-unknown-unknown ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
rustflags: ""
- name: Add rust targets ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: Cargo check
run: cargo check --release --target ${{ matrix.target }} --no-default-features