Skip to content

Commit

Permalink
commit lockfile; update CI test to match
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Sep 14, 2023
1 parent 3c4ed8f commit 1293491
Show file tree
Hide file tree
Showing 5 changed files with 1,504 additions and 31 deletions.
43 changes: 14 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,30 @@ on: [push]

jobs:
test_msrv:
name: test on MSRV
name: build on MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
# When toolchain is not specified, it uses rust-toolchain, which is the MSRV
override: true
- uses: actions-rs/[email protected]
with:
command: test
- uses: actions/[email protected]
- uses: dtolnay/[email protected]
# 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/[email protected]
# Because we use nightly features for building docs,
# using --all-features will fail without nightly toolchain.
- uses: actions-rs/[email protected]
with:
toolchain: nightly
override: true
- uses: actions-rs/[email protected]
with:
command: test
args: --all-features
- uses: actions/[email protected]
- 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/[email protected]
- uses: actions-rs/toolchain@v1.0.7
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
# This does not support std, so we use to test if no_std works
target: thumbv6m-none-eabi
- uses: actions-rs/[email protected]
with:
command: build
# Disables std feature
args: --no-default-features --target thumbv6m-none-eabi
targets: thumbv6m-none-eabi
- run: cargo build --no-default-features --target thumbv6m-none-eabi
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/target
**/*.rs.bk
Cargo.lock
*~
Loading

0 comments on commit 1293491

Please sign in to comment.