@@ -4,28 +4,34 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
build :
7
+
7
8
strategy :
8
9
matrix :
9
- rust : [stable, 1.20.0]
10
- platform : [ubuntu-latest, windows-latest]
11
- runs-on : ${{ matrix.platform }}
10
+ os : [macOS-latest, ubuntu-latest, windows-latest]
11
+ toolchain : [stable, 1.20.0]
12
+
13
+ runs-on : ${{ matrix.os }}
12
14
13
15
steps :
14
16
- uses : actions/checkout@master
15
17
- name : Install Rust
16
- run : |
17
- rustup toolchain install ${{ matrix.rust }}
18
- rustup default ${{ matrix.rust }}
19
- rustc -vV
18
+ if : matrix.os != 'macOS-latest' || matrix.toolchain != '1.20.0'
19
+ uses : actions-rs/toolchain@v1
20
+ with :
21
+ toolchain : ${{ matrix.toolchain }}
22
+ override : true
20
23
- name : Run no-default-features builds
24
+ if : matrix.os != 'macOS-latest' || matrix.toolchain != '1.20.0'
21
25
run : |
22
26
cargo test --verbose --no-default-features
23
27
cargo doc --verbose --no-default-features
24
28
- name : Run all-features builds
29
+ if : matrix.os != 'macOS-latest' || matrix.toolchain != '1.20.0'
25
30
run : |
26
31
cargo test --verbose --all-features
27
32
cargo doc --verbose --all-features
28
33
- name : Run cmp tests
34
+ if : matrix.os != 'macOS-latest' || matrix.toolchain != '1.20.0'
29
35
run : |
30
36
cd dev/cmp
31
- cargo test --verbose --release
37
+ cargo test --verbose --release
0 commit comments