Add the rust-alias
variable so that workflow names won't change with future MSRV bumps
This commit is contained in:
parent
66e0b82529
commit
1f4331e78b
1 changed files with 10 additions and 5 deletions
15
.github/workflows/ci.yaml
vendored
15
.github/workflows/ci.yaml
vendored
|
@ -10,17 +10,22 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Build and test
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||||
rust: [stable, '1.70', nightly]
|
include:
|
||||||
|
- rust-alias: stable
|
||||||
|
rust: stable
|
||||||
|
- rust-alias: msrv
|
||||||
|
rust: '1.70'
|
||||||
|
- rust-alias: nightly
|
||||||
|
rust: nightly
|
||||||
|
name: Build and test (${{ matrix.os }}, ${{ matrix.rust-alias}})
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Install ${{ matrix.rust }}
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue