Skip to content

Commit

Permalink
Running no_std_fixed CI exclusively with nightly toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeos committed May 11, 2024
1 parent 2ab3a00 commit b25a862
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 7 deletions.
46 changes: 40 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,33 @@ concurrency:

jobs:
build:
name: Lint, test and build
name: Lint, test and build rust-${{ matrix.toolchain }} ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
target:
- thumbv7em-none-eabi

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Rust setup (stable)
uses: dtolnay/rust-toolchain@stable
- name: Rust setup
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2
- id: cache-rust
uses: Swatinem/rust-cache@v2

- name: Lint - rustfmt
run: cargo fmt --all -- --check
Expand All @@ -33,9 +48,28 @@ jobs:
run: cargo check

- name: Test
run: cargo test
run: cargo test --verbose --lib --bins --tests --benches --example angle

- name: Build docs with --all-features
env:
RUSTDOCFLAGS: -D warnings --cfg docsrs
run: cargo doc --no-deps --all-features
run: cargo doc --no-deps --all-features

test-no_std_fixed:
name: Test no_std_fixed rust-${{ matrix.toolchain }} ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
toolchain:
- nightly
target:
- thumbv7em-none-eabi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- run: cargo test --verbose --example no_std_fixed

2 changes: 1 addition & 1 deletion .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
uses: actions/checkout@v4

- run: cargo check
- run: cargo test
- run: cargo test --verbose --lib --bins --tests --benches --example angle
File renamed without changes.

0 comments on commit b25a862

Please sign in to comment.