Skip to content

Commit 58e362a

Browse files
author
jiegec
committed
Use build matrix
1 parent 6d77a90 commit 58e362a

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,14 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
rust: [nightly-2020-02-01, nightly-2020-02-03, nightly-2020-03-01, nightly-2020-03-02]
1316

1417
steps:
1518
- uses: actions/checkout@v2
16-
- name: Use nightly-2020-02-01
17-
run: rustup default nightly-2020-02-01
18-
- name: Build
19-
run: cargo build --verbose
20-
- name: Run tests
21-
run: cargo test --verbose
22-
- name: Use nightly-2020-02-02
23-
run: rustup default nightly-2020-02-02
24-
- name: Build
25-
run: cargo build --verbose
26-
- name: Run tests
27-
run: cargo test --verbose
28-
- name: Use nightly-2020-02-03
29-
run: rustup default nightly-2020-02-03
30-
- name: Build
31-
run: cargo build --verbose
32-
- name: Run tests
33-
run: cargo test --verbose
34-
- name: Use nightly-2020-03-01
35-
run: rustup default nightly-2020-03-01
36-
- name: Build
37-
run: cargo build --verbose
38-
- name: Run tests
39-
run: cargo test --verbose
40-
- name: Use nightly-2020-03-02
41-
run: rustup default nightly-2020-03-02
19+
- name: Use ${{ matrix.rust }}
20+
run: rustup default ${{ matrix.rust }}
4221
- name: Build
4322
run: cargo build --verbose
4423
- name: Run tests

0 commit comments

Comments
 (0)