|
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | test:
|
12 |
| - strategy: |
13 |
| - matrix: |
14 |
| - os: |
15 |
| - - ubuntu-latest |
16 |
| - - macos-latest |
17 |
| - runs-on: ${{ matrix.os }} |
| 12 | + runs-on: ubuntu-latest |
18 | 13 | steps:
|
19 | 14 | - uses: actions/checkout@v2
|
20 | 15 | - uses: Swatinem/rust-cache@v1
|
21 |
| - - name: Setup dependencies (ubuntu) |
22 |
| - if: startsWith(matrix.os, 'ubuntu') |
| 16 | + - name: Setup dependencies |
23 | 17 | run:
|
24 | 18 | sudo apt-get install tree
|
25 |
| - - name: Setup dependencies (macos) |
26 |
| - if: startsWith(matrix.os, 'macos') |
27 |
| - run: |
28 |
| - brew install tree openssl |
29 |
| - - run: git lfs fetch && git lfs checkout |
30 |
| - if: startsWith(matrix.os, 'macos') |
31 | 19 | - name: test
|
32 | 20 | env:
|
33 | 21 | CI: true
|
34 | 22 | run: make tests
|
35 | 23 |
|
36 |
| - build-and-test-on-windows: |
37 |
| - name: Windows |
38 |
| - runs-on: windows-2019 |
| 24 | + test-fast: |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + os: |
| 28 | + - windows-2019 |
| 29 | + - macos-latest |
| 30 | + runs-on: ${{ matrix.os }} |
39 | 31 | steps:
|
40 | 32 | - uses: actions/checkout@v1
|
41 | 33 | - uses: actions-rs/toolchain@v1
|
|
44 | 36 | toolchain: stable
|
45 | 37 | override: true
|
46 | 38 | - uses: Swatinem/rust-cache@v1
|
47 |
| - - name: "Check default features build on windows" |
| 39 | + - name: Setup dependencies (macos) |
| 40 | + if: startsWith(matrix.os, 'macos') |
| 41 | + run: |
| 42 | + brew install tree openssl |
| 43 | + - name: "Check default features build" |
| 44 | + if: startsWith(matrix.os, 'windows') |
48 | 45 | uses: actions-rs/cargo@v1
|
49 | 46 | with:
|
50 | 47 | command: check
|
|
58 | 55 | run: cargo nextest run --all
|
59 | 56 | - name: "Install prerequisites"
|
60 | 57 | run: vcpkg install zlib:x64-windows-static-md
|
| 58 | + if: startsWith(matrix.os, 'windows') |
61 | 59 | - name: "Installation from crates.io"
|
62 | 60 | uses: actions-rs/cargo@v1
|
63 | 61 | with:
|
|
0 commit comments