@@ -15,68 +15,48 @@ jobs:
15
15
matrix :
16
16
rust :
17
17
- stable
18
+ # - stable minus 2 releases
19
+ # - beta
18
20
feature :
19
21
- ring
20
22
- openssl
21
23
steps :
22
- - uses : actions/checkout@v2
23
- - uses : actions-rs/toolchain@v1
24
+ - uses : actions/checkout@v4
25
+ - uses : Swatinem/rust-cache@v2
26
+ - uses : dtolnay/rust-toolchain@stable
24
27
with :
25
- profile : minimal
26
28
toolchain : ${{ matrix.rust }}
27
- override : true
28
- - run : rustup component add clippy
29
+ components : clippy, rustfmt
29
30
30
- - name : check
31
- uses : actions-rs/cargo@v1
32
- with :
33
- command : check
34
- args : --no-default-features --features ${{ matrix.feature }}
31
+ - name : check
32
+ run : cargo check --no-default-features --features ${{ matrix.feature }}
35
33
36
34
- name : check (benches)
37
- uses : actions-rs/cargo@v1
38
- with :
39
- command : check
40
- args : --benches --no-default-features --features ${{ matrix.feature }}
35
+ run : cargo check --benches --no-default-features --features ${{ matrix.feature }}
41
36
42
37
- name : check (tests)
43
- uses : actions-rs/cargo@v1
44
- with :
45
- command : check
46
- args : --tests --no-default-features --features ${{ matrix.feature }}
38
+ run : cargo check --tests --no-default-features --features ${{ matrix.feature }}
47
39
48
40
- name : test
49
- uses : actions-rs/cargo@v1
50
- with :
51
- command : test
52
- args : --no-default-features --features ${{ matrix.feature }}
41
+ run : cargo test --no-default-features --features ${{ matrix.feature }}
53
42
54
43
- name : clippy
55
- uses : actions-rs/cargo@v1
56
- with :
57
- command : clippy
58
- args : --all-targets --no-default-features --features ${{ matrix.feature }} -- -Dwarnings
44
+ run : cargo clippy --all-targets --no-default-features --features ${{ matrix.feature }} -- -Dwarnings
59
45
60
46
# test packaging to avoid surprisis at release time
61
47
- name : package
62
- uses : actions-rs/cargo@v1
63
- with :
64
- command : package
48
+ run : cargo package
65
49
66
50
67
51
build-wasm :
68
52
name : build wasm32
69
53
runs-on : ubuntu-latest
70
54
steps :
71
- - uses : actions/checkout@v2
72
- - uses : actions-rs/toolchain@v1
55
+ - uses : actions/checkout@v4
56
+ - uses : Swatinem/rust-cache@v2
57
+ - uses : dtolnay/rust-toolchain@stable
73
58
with :
74
- profile : minimal
75
59
toolchain : stable
76
- override : true
77
60
target : wasm32-unknown-unknown
78
61
- name : build
79
- uses : actions-rs/cargo@v1
80
- with :
81
- command : build
82
- args : --target wasm32-unknown-unknown --features ring
62
+ run : cargo build --target wasm32-unknown-unknown --features ring
0 commit comments