Skip to content

Commit 79f9b1b

Browse files
committed
Run test-examples on every toolchain
1 parent f6eb753 commit 79f9b1b

File tree

1 file changed

+25
-76
lines changed

1 file changed

+25
-76
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v1
25+
uses: actions/checkout@v2
2626

27-
- name: rust-toolchain
27+
- name: Setup ${{ matrix.channel }}-x86_64-unknown-linux-gnu
2828
uses: actions-rs/toolchain@v1
2929
with:
3030
toolchain: ${{ matrix.channel }}-x86_64-unknown-linux-gnu
@@ -43,49 +43,6 @@ jobs:
4343
command: fmt
4444
args: --manifest-path ./tools/test-examples/Cargo.toml -- --check
4545

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-
8946
build:
9047
strategy:
9148
fail-fast: false
@@ -106,52 +63,28 @@ jobs:
10663
- beta-x86_64-unknown-linux-gnu
10764
include:
10865
- toolchain: 1.40.0-x86_64-pc-windows-msvc
109-
features: --no-default-features
110-
dep_tests: true
11166
os: windows-latest
11267
- toolchain: 1.40.0-x86_64-pc-windows-gnu
113-
features: --no-default-features
114-
dep_tests: false
11568
os: windows-latest
11669
- toolchain: 1.40.0-x86_64-apple-darwin
117-
features: --all-features
118-
dep_tests: true
11970
os: macOS-latest
12071
- toolchain: 1.40.0-x86_64-unknown-linux-gnu
121-
features: --all-features
122-
dep_tests: true
12372
os: ubuntu-18.04
12473
- toolchain: stable-x86_64-pc-windows-msvc
125-
features: --no-default-features
126-
dep_tests: true
12774
os: windows-latest
12875
- toolchain: stable-x86_64-pc-windows-gnu
129-
features: --no-default-features
130-
dep_tests: false
13176
os: windows-latest
13277
- toolchain: stable-x86_64-apple-darwin
133-
features: --all-features
134-
dep_tests: true
13578
os: macOS-latest
13679
- toolchain: stable-x86_64-unknown-linux-gnu
137-
features: --all-features
138-
dep_tests: true
13980
os: ubuntu-18.04
14081
- toolchain: beta-x86_64-pc-windows-msvc
141-
features: --no-default-features
142-
dep_tests: true
14382
os: windows-latest
14483
- toolchain: beta-x86_64-pc-windows-gnu
145-
features: --no-default-features
146-
dep_tests: false
14784
os: windows-latest
14885
- toolchain: beta-x86_64-apple-darwin
149-
features: --all-features
150-
dep_tests: true
15186
os: macOS-latest
15287
- toolchain: beta-x86_64-unknown-linux-gnu
153-
features: --all-features
154-
dep_tests: true
15588
os: ubuntu-18.04
15689

15790
name: ${{ matrix.toolchain }}
@@ -163,29 +96,45 @@ jobs:
16396
if: matrix.os == 'windows-latest'
16497

16598
- name: Checkout
166-
uses: actions/checkout@v1
99+
uses: actions/checkout@v2
167100

168-
- name: rust-toolchain
101+
- name: Setup ${{ matrix.toolchain }}
169102
uses: actions-rs/toolchain@v1
170103
with:
171104
toolchain: ${{ matrix.toolchain }}
172105
override: true
173106
profile: default
174107

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`'
176120
uses: actions-rs/cargo@v1
177121
with:
178122
command: clippy
179-
args: --all-targets --profile test ${{ matrix.features }} -- -D warnings
123+
args: --manifest-path ./tools/test-examples/Cargo.toml -- -D warnings
180124

181-
- name: '`cargo test --all-targets ${{ matrix.features }} --no-fail-fast`'
125+
- name: '`cargo test --all-targets --no-fail-fast`'
182126
uses: actions-rs/cargo@v1
183127
with:
184128
command: test
185-
args: --all-targets ${{ matrix.features }} --no-fail-fast
129+
args: --all-targets --no-fail-fast
186130

187131
- name: '`cargo run --release`'
188132
uses: actions-rs/cargo@v1
189133
with:
190134
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

Comments
 (0)