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 f15b9fa
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,32 @@ 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 }}

- 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 +47,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

File renamed without changes.

0 comments on commit f15b9fa

Please sign in to comment.