Skip to content

Commit 2ead1f9

Browse files
authored
Run tests for MSRV, on macOS versions, and fix toolchain (#614)
* run tests on MSRV, for all macOS versions * use dtolnay/rust-toolchain rather than unmaintained actions-rs/toolchain * remove "msrv" build target as blocker for build result, as it is part of build * update outdated actions/checkout
1 parent b6d2529 commit 2ead1f9

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/rust.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,21 @@ jobs:
2424
semver:
2525
runs-on: macos-11.0
2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2828
- name: Check semver
2929
uses: obi1kenobi/cargo-semver-checks-action@v2
30-
msrv:
31-
runs-on: macos-11.0
32-
steps:
33-
- uses: actions/checkout@v2
34-
- name: Install toolchain
35-
uses: actions-rs/toolchain@v1
36-
with:
37-
toolchain: 1.56.1
38-
override: true
39-
- name: Build
40-
run: cargo build --verbose
4130
build:
4231
runs-on: ${{ matrix.os }}
4332
strategy:
4433
matrix:
4534
os: [macos-11.0, macos-12, macos-13]
35+
toolchain: [stable, 1.56.1]
4636
steps:
47-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
38+
- name: Install toolchain
39+
uses: dtolnay/rust-toolchain@master
40+
with:
41+
toolchain: ${{ matrix.toolchain }}
4842
- name: Build
4943
run: cargo build --verbose
5044
- name: Run tests
@@ -54,7 +48,6 @@ jobs:
5448
runs-on: ubuntu-latest
5549
needs:
5650
- "build"
57-
- "msrv"
5851
- "semver"
5952
steps:
6053
- name: Mark the job as successful

0 commit comments

Comments
 (0)