-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (40 loc) · 1.32 KB
/
test.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
39
40
41
42
43
on: [push, pull_request]
name: Test
jobs:
wasm:
name: cargo build (WASM)
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: wasm32-unknown-unknown
- name: build (WASM)
run: cargo +stable build --target=wasm32-unknown-unknown --no-default-features
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: check (no features)
run: cargo +stable check --no-default-features
- name: check (all features)
run: cargo +stable check --all-features --all-targets
- name: test/debug (all features)
run: cargo +stable test --all-features
- name: test/debug (no features)
run: cargo +stable test --no-default-features
- name: test/release (all features)
run: cargo +stable test --release --all-features
- name: test/release (no features)
run: cargo +stable test --release --no-default-features
- name: Build documentation
run: RUSTDOCFLAGS="-D warnings" cargo +stable doc --no-deps