34 lines
959 B
YAML
34 lines
959 B
YAML
name: CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test_msrv:
|
|
name: build on MSRV
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- uses: dtolnay/rust-toolchain@1.65.0
|
|
# Don't use --all-features because `frost` has a higher MSRV and it's non-default.
|
|
# Also don't run tests because some dev-dependencies have higher MSRVs.
|
|
- run: cargo build
|
|
test_nightly:
|
|
name: test on nightly
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
# Update dependencies since we commit the lockfile
|
|
- run: cargo update --verbose
|
|
- run: cargo test --all-features
|
|
build_no_std:
|
|
name: build with no_std
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: stable
|
|
targets: thumbv6m-none-eabi
|
|
- run: cargo build --no-default-features --target thumbv6m-none-eabi
|