-
Notifications
You must be signed in to change notification settings - Fork 11
72 lines (70 loc) · 2.03 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
check:
name: cargo check
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
docs:
name: cargo doc
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Build documentation
run: RUSTDOCFLAGS="-D warnings" cargo +stable doc --no-deps
test-release:
name: cargo test (release)
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- 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
test-debug:
name: cargo test (debug)
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: test/debug (all features)
run: cargo +stable test --all-features
- name: test/debug (no features)
run: cargo +stable test --no-default-features