Add xtask msrv #436
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Run the TaskChampion tests, using both the minimum supported rust version | |
## and the latest stable Rust. | |
name: tests - rust | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
rust: | |
# MSRV; must not be higher than the clippy rust version in checks.yml | |
- "1.64" | |
- "stable" | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
name: "rust ${{ matrix.rust }} on ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache cargo registry | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo/registry | |
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
- name: Cache cargo build | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "${{ matrix.rust }}" | |
override: true | |
- name: test | |
run: cargo test |