Skip to content

Commit 8be90df

Browse files
committed
Use MacOS for fast-testing (#384)
1 parent 4d03241 commit 8be90df

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,25 @@ on:
99

1010
jobs:
1111
test:
12-
strategy:
13-
matrix:
14-
os:
15-
- ubuntu-latest
16-
- macos-latest
17-
runs-on: ${{ matrix.os }}
12+
runs-on: ubuntu-latest
1813
steps:
1914
- uses: actions/checkout@v2
2015
- uses: Swatinem/rust-cache@v1
21-
- name: Setup dependencies (ubuntu)
22-
if: startsWith(matrix.os, 'ubuntu')
16+
- name: Setup dependencies
2317
run:
2418
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')
3119
- name: test
3220
env:
3321
CI: true
3422
run: make tests
3523

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 }}
3931
steps:
4032
- uses: actions/checkout@v1
4133
- uses: actions-rs/toolchain@v1
@@ -44,7 +36,12 @@ jobs:
4436
toolchain: stable
4537
override: true
4638
- 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')
4845
uses: actions-rs/cargo@v1
4946
with:
5047
command: check
@@ -58,6 +55,7 @@ jobs:
5855
run: cargo nextest run --all
5956
- name: "Install prerequisites"
6057
run: vcpkg install zlib:x64-windows-static-md
58+
if: startsWith(matrix.os, 'windows')
6159
- name: "Installation from crates.io"
6260
uses: actions-rs/cargo@v1
6361
with:

0 commit comments

Comments
 (0)