Run metadata consistency checks in CI #129
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
name: msrv-build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
msrv-build: | |
name: MSRV build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.70.0 | |
target: thumbv6m-none-eabi | |
- name: Use MSRV Cargo.lock | |
run: cp Cargo.lock.msrv Cargo.lock | |
- name: Build with MSRV | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --all --locked | |
toolchain: 1.70.0 | |
- name: Build no-std with MSRV | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --manifest-path=num_enum/Cargo.toml --target thumbv6m-none-eabi --no-default-features --locked | |
toolchain: 1.70.0 |