5
5
pull_request :
6
6
branches :
7
7
- master
8
+ - version-0.4
8
9
9
10
name : tests
10
11
@@ -16,38 +17,70 @@ jobs:
16
17
rust :
17
18
- stable
18
19
- beta
19
- - 1.56.1 # MSRV
20
+ - 1.57 # MSRV
20
21
21
22
steps :
22
23
- uses : actions/checkout@v2
23
24
24
25
- uses : actions-rs/toolchain@v1
26
+ name : Setup rust toolchain
25
27
with :
26
28
profile : minimal
27
29
toolchain : ${{ matrix.rust }}
28
30
override : true
29
31
components : rustfmt, clippy
30
32
31
33
- uses : Swatinem/rust-cache@v1
34
+ name : Load dependencies from cache
32
35
33
36
- uses : actions-rs/cargo@v1
37
+ name : Build with stable features
34
38
with :
35
39
command : build
36
40
args : --features stable
37
41
38
42
- uses : actions-rs/cargo@v1
43
+ if : ${{ matrix.rust == 'nightly' }}
44
+ name : Build with unstable features
45
+ with :
46
+ command : build
47
+ args : --all-features
48
+
49
+ - uses : actions-rs/cargo@v1
50
+ name : Build with minimal features
51
+ with :
52
+ command : build
53
+ args : --no-default-features
54
+
55
+ - uses : actions-rs/cargo@v1
56
+ name : Test with stable features
39
57
with :
40
58
command : test
41
59
args : --features stable
42
60
43
61
- uses : actions-rs/cargo@v1
62
+ name : Test with minimal features
63
+ with :
64
+ command : test
65
+ args : --no-default-features
66
+
67
+ - uses : actions-rs/cargo@v1
68
+ name : Check for non-standard formatting
44
69
if : ${{ matrix.rust == 'stable' }}
45
70
with :
46
71
command : fmt
47
72
args : --all -- --check
48
73
49
74
- uses : actions-rs/cargo@v1
50
- if : ${{ matrix.rust != '1.40.0' }} # 1.40 has horrible lints.
75
+ name : Check for clippy hints
51
76
with :
52
77
command : clippy
53
78
args : -- -D warnings
79
+
80
+ - name : Test run targeting WASI
81
+ run : |
82
+ curl https://wasmtime.dev/install.sh -sSf | bash
83
+ source ~/.bashrc
84
+ export PATH=$HOME/.wasmtime/bin/:$PATH
85
+ cargo install cargo-wasi
86
+ cargo wasi bench --no-default-features -- --test
0 commit comments