Improve example documentation #181
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: CI | |
jobs: | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install audit | |
run: cargo install cargo-audit | |
- name: Audit | |
run: cargo audit | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Format | |
run: cargo fmt --all -- --check | |
lints: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Install linter | |
run: cargo install cargo-lints | |
- name: Lints | |
run: cargo lints clippy --all-targets --all-features | |
check-stable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Check (no features) | |
run: cargo check --all-targets --no-default-features | |
- name: Check (all features) | |
run: cargo check --all-targets --all-features | |
check-nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Check (no features) | |
run: cargo check --all-targets --no-default-features | |
- name: Check (all features) | |
run: cargo check --all-targets --all-features | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Docs | |
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown, thumbv8m.main-none-eabi | |
- name: Release build (no features) | |
run: cargo build --release --all-targets --no-default-features | |
- name: Release build (all features) | |
run: cargo build --release --all-targets --all-features | |
- name: Release build (WASM) | |
run: cargo build --release --target wasm32-unknown-unknown --no-default-features | |
- name: Release build (metal) | |
run: cargo build --release --target thumbv8m.main-none-eabi --no-default-features | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Test (debug, no features) | |
run: cargo test --no-default-features | |
- name: Test (debug, all features) | |
run: cargo test --all-features | |
- name: Test (release, no features) | |
run: cargo test --release --no-default-features | |
- name: Test (release, all features) | |
run: cargo test --release --all-features |