Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 38 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,48 @@ jobs:
- name: Check
run: cargo check --all-features

audit:
name: Security Audit
ensure_no_std:
name: Ensure no_std
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Toolchain
- name: Install Rust Toolchain (nightly)
uses: dtolnay/rust-toolchain@nightly
with:
targets: thumbv6m-none-eabi

- name: Build (no_std)
run: cargo build --no-default-features --target thumbv6m-none-eabi
shell: bash

coverage:
name: Coverage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Toolchain (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview

- name: Install cargo-audit
run: cargo install cargo-audit
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov

- name: Run cargo audit
run: cargo audit
- name: Run coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

ensure_no_std:
name: Ensure no_std
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: lcov.info
fail_ci_if_error: false

audit:
name: Security Audit
runs-on: ubuntu-latest

steps:
Expand All @@ -72,5 +96,8 @@ jobs:
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Build no_std
run: cargo build --no-default-features
- name: Install cargo-audit
run: cargo install cargo-audit

- name: Run cargo audit
run: cargo audit
Loading