@@ -14,17 +14,17 @@ jobs:
14
14
# Breaking changes like this might be mixed into the future stable versions.
15
15
# https://github.com/rust-lang/rustfmt/pull/3632
16
16
channel :
17
- - 1.39 .0
17
+ - 1.40 .0
18
18
- stable
19
19
20
20
name : Rustfmt (${{ matrix.channel }})
21
21
runs-on : ubuntu-18.04
22
22
23
23
steps :
24
24
- name : Checkout
25
- uses : actions/checkout@v1
25
+ uses : actions/checkout@v2
26
26
27
- - name : rust-toolchain
27
+ - name : Setup ${{ matrix.channel }}-x86_64-unknown-linux-gnu
28
28
uses : actions-rs/toolchain@v1
29
29
with :
30
30
toolchain : ${{ matrix.channel }}-x86_64-unknown-linux-gnu
@@ -37,71 +37,22 @@ jobs:
37
37
command : fmt
38
38
args : -- --check
39
39
40
- - name : ' `cargo fmt --manifest-path ./tools/dep-tests/Cargo.toml -- --check`'
41
- uses : actions-rs/cargo@v1
42
- with :
43
- command : fmt
44
- args : --manifest-path ./tools/dep-tests/Cargo.toml -- --check
45
-
46
40
- name : ' `cargo fmt --manifest-path ./tools/test-examples/Cargo.toml -- --check`'
47
41
uses : actions-rs/cargo@v1
48
42
with :
49
43
command : fmt
50
44
args : --manifest-path ./tools/test-examples/Cargo.toml -- --check
51
45
52
- test-examples :
53
- name : test-examples
54
- runs-on : ubuntu-18.04
55
-
56
- steps :
57
- - name : Checkout
58
- uses : actions/checkout@v1
59
-
60
- - name : setup-python
61
- uses : actions/setup-python@v1
62
- with :
63
- python-version : ' 3.8'
64
-
65
- - name : rust-toolchain
66
- uses : actions-rs/toolchain@v1
67
- with :
68
- toolchain : 1.39.0-x86_64-unknown-linux-gnu
69
- default : true
70
- profile : default
71
-
72
- - name : ' `cargo install --git https://github.com/rust-lang-ja/atcoder-rustc-dep-option-generator`'
73
- uses : actions-rs/cargo@v1
74
- with :
75
- command : install
76
- args : --git https://github.com/rust-lang-ja/atcoder-rustc-dep-option-generator
77
-
78
- - name : ' `cargo clippy --all-features --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings`'
79
- uses : actions-rs/cargo@v1
80
- with :
81
- command : clippy
82
- args : --all-features --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings
83
-
84
- - name : ' `cargo build --all-features --release`'
85
- uses : actions-rs/cargo@v1
86
- with :
87
- command : build
88
- args : --all-features --release
89
-
90
- - name : ' `cargo test-examples`'
91
- uses : actions-rs/cargo@v1
92
- with :
93
- command : test-examples
94
-
95
46
build :
96
47
strategy :
97
48
fail-fast : false
98
49
matrix :
99
50
toolchain :
100
51
# `x86_64-pc-windows-gnu` is tier 1 **for now**.
101
- - 1.39 .0-x86_64-pc-windows-msvc
102
- - 1.39 .0-x86_64-pc-windows-gnu
103
- - 1.39 .0-x86_64-apple-darwin
104
- - 1.39 .0-x86_64-unknown-linux-gnu
52
+ - 1.40 .0-x86_64-pc-windows-msvc
53
+ - 1.40 .0-x86_64-pc-windows-gnu
54
+ - 1.40 .0-x86_64-apple-darwin
55
+ - 1.40 .0-x86_64-unknown-linux-gnu
105
56
- stable-x86_64-pc-windows-msvc
106
57
- stable-x86_64-pc-windows-gnu
107
58
- stable-x86_64-apple-darwin
@@ -111,53 +62,29 @@ jobs:
111
62
- beta-x86_64-apple-darwin
112
63
- beta-x86_64-unknown-linux-gnu
113
64
include :
114
- - toolchain : 1.39.0-x86_64-pc-windows-msvc
115
- features : --no-default-features
116
- dep_tests : true
65
+ - toolchain : 1.40.0-x86_64-pc-windows-msvc
117
66
os : windows-latest
118
- - toolchain : 1.39.0-x86_64-pc-windows-gnu
119
- features : --no-default-features
120
- dep_tests : false
67
+ - toolchain : 1.40.0-x86_64-pc-windows-gnu
121
68
os : windows-latest
122
- - toolchain : 1.39.0-x86_64-apple-darwin
123
- features : --all-features
124
- dep_tests : true
69
+ - toolchain : 1.40.0-x86_64-apple-darwin
125
70
os : macOS-latest
126
- - toolchain : 1.39.0-x86_64-unknown-linux-gnu
127
- features : --all-features
128
- dep_tests : true
71
+ - toolchain : 1.40.0-x86_64-unknown-linux-gnu
129
72
os : ubuntu-18.04
130
73
- toolchain : stable-x86_64-pc-windows-msvc
131
- features : --no-default-features
132
- dep_tests : true
133
74
os : windows-latest
134
75
- toolchain : stable-x86_64-pc-windows-gnu
135
- features : --no-default-features
136
- dep_tests : false
137
76
os : windows-latest
138
77
- toolchain : stable-x86_64-apple-darwin
139
- features : --all-features
140
- dep_tests : true
141
78
os : macOS-latest
142
79
- toolchain : stable-x86_64-unknown-linux-gnu
143
- features : --all-features
144
- dep_tests : true
145
80
os : ubuntu-18.04
146
81
- toolchain : beta-x86_64-pc-windows-msvc
147
- features : --no-default-features
148
- dep_tests : true
149
82
os : windows-latest
150
83
- toolchain : beta-x86_64-pc-windows-gnu
151
- features : --no-default-features
152
- dep_tests : false
153
84
os : windows-latest
154
85
- toolchain : beta-x86_64-apple-darwin
155
- features : --all-features
156
- dep_tests : true
157
86
os : macOS-latest
158
87
- toolchain : beta-x86_64-unknown-linux-gnu
159
- features : --all-features
160
- dep_tests : true
161
88
os : ubuntu-18.04
162
89
163
90
name : ${{ matrix.toolchain }}
@@ -169,50 +96,45 @@ jobs:
169
96
if : matrix.os == 'windows-latest'
170
97
171
98
- name : Checkout
172
- uses : actions/checkout@v1
99
+ uses : actions/checkout@v2
173
100
174
- - name : rust- toolchain
101
+ - name : Setup ${{ matrix. toolchain }}
175
102
uses : actions-rs/toolchain@v1
176
103
with :
177
104
toolchain : ${{ matrix.toolchain }}
178
105
override : true
179
106
profile : default
180
107
181
- - name : ' `cargo clippy --all-targets --profile test ${{ matrix.features }} -- -D warnings` '
182
- uses : actions-rs/cargo @v1
108
+ - name : Setup Python 3.8
109
+ uses : actions/setup-python @v1
183
110
with :
184
- command : clippy
185
- args : --all-targets --profile test ${{ matrix.features }} -- -D warnings
111
+ python-version : ' 3.8'
186
112
187
- - name : ' `cargo test --all-targets ${{ matrix.features }} --no-fail-fast `'
113
+ - name : ' `cargo clippy --all-targets --profile test -- -D warnings `'
188
114
uses : actions-rs/cargo@v1
189
115
with :
190
- command : test
191
- args : --all-targets ${{ matrix.features }} --no-fail-fast
116
+ command : clippy
117
+ args : --all-targets --profile test -- -D warnings
192
118
193
- - name : ' `cargo run --release `'
119
+ - name : ' `cargo clippy --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings `'
194
120
uses : actions-rs/cargo@v1
195
121
with :
196
- command : run
197
- args : ${{ matrix.features }} --release
122
+ command : clippy
123
+ args : --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings
198
124
199
- - name : ' `cargo clippy ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml -- -D warnings `'
125
+ - name : ' `cargo test --all-targets --no-fail-fast `'
200
126
uses : actions-rs/cargo@v1
201
127
with :
202
- command : clippy
203
- args : ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml -- -D warnings
204
- if : matrix.dep_tests
128
+ command : test
129
+ args : --all-targets --no-fail-fast
205
130
206
- - name : ' `cargo test ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml --no-fail-fast `'
131
+ - name : ' `cargo run --release `'
207
132
uses : actions-rs/cargo@v1
208
133
with :
209
- command : test
210
- args : ${{ matrix.features }} --manifest-path ./tools/dep-tests/Cargo.toml --no-fail-fast
211
- if : matrix.dep_tests
134
+ command : run
135
+ args : --release
212
136
213
- - name : ' `cargo dep-tests --all-features -d 1 `'
137
+ - name : ' `cargo test-examples `'
214
138
uses : actions-rs/cargo@v1
215
139
with :
216
- command : dep-tests
217
- args : --all-features -d 1
218
- if : matrix.dep_tests
140
+ command : test-examples
0 commit comments