add rust toolchain toml #338
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
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
name: msrv | |
jobs: | |
validate-msrv: | |
runs-on: ${{ matrix.os }} | |
#container: | |
# image: ubuntu:20.10 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: | |
- stable | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- name: cargo check | |
run: cargo hack check --rust-version --workspace --all-targets --all-features | |
- name: cargo hack test | |
run: cargo hack test --rust-version --workspace --all-targets --feature-powerset | |