Skip to content

Update GitHub actions #92

Update GitHub actions

Update GitHub actions #92

Workflow file for this run

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@v3
- name: Fetch toolchain
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: 1.56.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.56.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.56.0