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
43
43
command : fmt
44
44
args : --manifest-path ./tools/test-examples/Cargo.toml -- --check
45
45
46
- test-examples :
47
- name : test-examples
48
- runs-on : ubuntu-18.04
49
-
50
- steps :
51
- - name : Checkout
52
- uses : actions/checkout@v1
53
-
54
- - name : setup-python
55
- uses : actions/setup-python@v1
56
- with :
57
- python-version : ' 3.8'
58
-
59
- - name : rust-toolchain
60
- uses : actions-rs/toolchain@v1
61
- with :
62
- toolchain : 1.40.0-x86_64-unknown-linux-gnu
63
- default : true
64
- profile : default
65
-
66
- - name : ' `cargo install --git https://github.com/rust-lang-ja/atcoder-rustc-dep-option-generator`'
67
- uses : actions-rs/cargo@v1
68
- with :
69
- command : install
70
- args : --git https://github.com/rust-lang-ja/atcoder-rustc-dep-option-generator
71
-
72
- - name : ' `cargo clippy --all-features --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings`'
73
- uses : actions-rs/cargo@v1
74
- with :
75
- command : clippy
76
- args : --all-features --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings
77
-
78
- - name : ' `cargo build --all-features --release`'
79
- uses : actions-rs/cargo@v1
80
- with :
81
- command : build
82
- args : --all-features --release
83
-
84
- - name : ' `cargo test-examples`'
85
- uses : actions-rs/cargo@v1
86
- with :
87
- command : test-examples
88
-
89
46
build :
90
47
strategy :
91
48
fail-fast : false
@@ -106,52 +63,28 @@ jobs:
106
63
- beta-x86_64-unknown-linux-gnu
107
64
include :
108
65
- toolchain : 1.40.0-x86_64-pc-windows-msvc
109
- features : --no-default-features
110
- dep_tests : true
111
66
os : windows-latest
112
67
- toolchain : 1.40.0-x86_64-pc-windows-gnu
113
- features : --no-default-features
114
- dep_tests : false
115
68
os : windows-latest
116
69
- toolchain : 1.40.0-x86_64-apple-darwin
117
- features : --all-features
118
- dep_tests : true
119
70
os : macOS-latest
120
71
- toolchain : 1.40.0-x86_64-unknown-linux-gnu
121
- features : --all-features
122
- dep_tests : true
123
72
os : ubuntu-18.04
124
73
- toolchain : stable-x86_64-pc-windows-msvc
125
- features : --no-default-features
126
- dep_tests : true
127
74
os : windows-latest
128
75
- toolchain : stable-x86_64-pc-windows-gnu
129
- features : --no-default-features
130
- dep_tests : false
131
76
os : windows-latest
132
77
- toolchain : stable-x86_64-apple-darwin
133
- features : --all-features
134
- dep_tests : true
135
78
os : macOS-latest
136
79
- toolchain : stable-x86_64-unknown-linux-gnu
137
- features : --all-features
138
- dep_tests : true
139
80
os : ubuntu-18.04
140
81
- toolchain : beta-x86_64-pc-windows-msvc
141
- features : --no-default-features
142
- dep_tests : true
143
82
os : windows-latest
144
83
- toolchain : beta-x86_64-pc-windows-gnu
145
- features : --no-default-features
146
- dep_tests : false
147
84
os : windows-latest
148
85
- toolchain : beta-x86_64-apple-darwin
149
- features : --all-features
150
- dep_tests : true
151
86
os : macOS-latest
152
87
- toolchain : beta-x86_64-unknown-linux-gnu
153
- features : --all-features
154
- dep_tests : true
155
88
os : ubuntu-18.04
156
89
157
90
name : ${{ matrix.toolchain }}
@@ -163,29 +96,45 @@ jobs:
163
96
if : matrix.os == 'windows-latest'
164
97
165
98
- name : Checkout
166
- uses : actions/checkout@v1
99
+ uses : actions/checkout@v2
167
100
168
- - name : rust- toolchain
101
+ - name : Setup ${{ matrix. toolchain }}
169
102
uses : actions-rs/toolchain@v1
170
103
with :
171
104
toolchain : ${{ matrix.toolchain }}
172
105
override : true
173
106
profile : default
174
107
175
- - name : ' `cargo clippy --all-targets --profile test ${{ matrix.features }} -- -D warnings`'
108
+ - name : Setup Python 3.8
109
+ uses : actions/setup-python@v1
110
+ with :
111
+ python-version : ' 3.8'
112
+
113
+ - name : ' `cargo clippy --all-targets --profile test -- -D warnings`'
114
+ uses : actions-rs/cargo@v1
115
+ with :
116
+ command : clippy
117
+ args : --all-targets --profile test -- -D warnings
118
+
119
+ - name : ' `cargo clippy --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings`'
176
120
uses : actions-rs/cargo@v1
177
121
with :
178
122
command : clippy
179
- args : --all-targets --profile test ${{ matrix.features }} -- -D warnings
123
+ args : --manifest-path ./tools/ test-examples/Cargo.toml -- -D warnings
180
124
181
- - name : ' `cargo test --all-targets ${{ matrix.features }} --no-fail-fast`'
125
+ - name : ' `cargo test --all-targets --no-fail-fast`'
182
126
uses : actions-rs/cargo@v1
183
127
with :
184
128
command : test
185
- args : --all-targets ${{ matrix.features }} --no-fail-fast
129
+ args : --all-targets --no-fail-fast
186
130
187
131
- name : ' `cargo run --release`'
188
132
uses : actions-rs/cargo@v1
189
133
with :
190
134
command : run
191
- args : ${{ matrix.features }} --release
135
+ args : --release
136
+
137
+ - name : ' `cargo test-examples`'
138
+ uses : actions-rs/cargo@v1
139
+ with :
140
+ command : test-examples
0 commit comments