1
- # Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
2
- #
3
- # While our "example" application has the platform-specific code,
4
- # for simplicity we are compiling and testing everything on the Ubuntu environment only.
5
- # For multi-OS testing see the `cross.yml` workflow.
6
-
7
1
on : [push, pull_request]
8
2
9
3
name : Build
@@ -16,103 +10,41 @@ jobs:
16
10
name : Check
17
11
runs-on : ubuntu-latest
18
12
steps :
19
- - name : Checkout sources
20
- uses : actions/checkout@v2
21
-
22
- - name : Install stable toolchain
23
- uses : actions-rs/toolchain@v1
24
- with :
25
- profile : minimal
26
- toolchain : stable
27
- override : true
28
-
29
- - name : Run cargo check
30
- uses : actions-rs/cargo@v1
31
- with :
32
- command : check
13
+ - uses : actions/checkout@v4
14
+ - uses : dtolnay/rust-toolchain@stable
15
+ - run : cargo check --workspace
33
16
34
17
test :
35
18
name : Test Suite
36
19
runs-on : ubuntu-latest
37
20
steps :
38
- - name : Checkout sources
39
- uses : actions/checkout@v2
40
-
41
- - name : Install stable toolchain
42
- uses : actions-rs/toolchain@v1
43
- with :
44
- profile : minimal
45
- toolchain : stable
46
- override : true
47
-
48
- - name : Run cargo test
49
- uses : actions-rs/cargo@v1
50
- with :
51
- command : test
21
+ - uses : actions/checkout@v4
22
+ - uses : dtolnay/rust-toolchain@stable
23
+ - run : cargo test --workspace
52
24
53
25
unstable :
54
26
name : Test Suite (unstable)
55
27
runs-on : ubuntu-latest
56
28
steps :
57
- - name : Checkout sources
58
- uses : actions/checkout@v2
59
-
60
- - name : Install nightly toolchain
61
- uses : actions-rs/toolchain@v1
62
- with :
63
- profile : minimal
64
- toolchain : nightly
65
- override : true
66
-
67
- - name : Run cargo test --features unstable
68
- uses : actions-rs/cargo@v1
69
- with :
70
- command : test
71
- args : --features unstable
29
+ - uses : actions/checkout@v4
30
+ - uses : dtolnay/rust-toolchain@nightly
31
+ - run : cargo test --workspace --features unstable
72
32
73
33
very_unstable :
74
34
name : Test Suite (very_unstable)
75
35
runs-on : ubuntu-latest
76
36
steps :
77
- - name : Checkout sources
78
- uses : actions/checkout@v2
79
-
80
- - name : Install nightly toolchain
81
- uses : actions-rs/toolchain@v1
82
- with :
83
- profile : minimal
84
- toolchain : nightly
85
- override : true
86
-
87
- - name : Run cargo test --features very_unstable
88
- uses : actions-rs/cargo@v1
89
- with :
90
- command : test
91
- args : --features very_unstable
92
-
37
+ - uses : actions/checkout@v4
38
+ - uses : dtolnay/rust-toolchain@nightly
39
+ - run : cargo test --workspace --features very_unstable
93
40
94
41
lints :
95
42
name : Lints
96
43
runs-on : ubuntu-latest
97
44
steps :
98
- - name : Checkout sources
99
- uses : actions/checkout@v2
100
-
101
- - name : Install stable toolchain
102
- uses : actions-rs/toolchain@v1
103
- with :
104
- profile : minimal
105
- toolchain : stable
106
- override : true
107
- components : rustfmt, clippy
108
-
109
- - name : Run cargo fmt
110
- uses : actions-rs/cargo@v1
111
- with :
112
- command : fmt
113
- args : --all -- --check
114
-
115
- - name : Run cargo clippy
116
- uses : actions-rs/cargo@v1
45
+ - uses : actions/checkout@v4
46
+ - uses : dtolnay/rust-toolchain@stable
117
47
with :
118
- command : clippy
48
+ components : clippy, rustfmt
49
+ - run : cargo fmt --all --check
50
+ - run : cargo clippy --workspace
0 commit comments