1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches:
pull_request:
jobs:
lint:
name: fmt · clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --all --check
- run: cargo clippy --all-targets -- -D warnings
test:
name: test · ${{ matrix.os }} · rust ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
# run the whole batch even if one cell fails, so a single-platform break is visible
fail-fast: false
matrix:
os:
# `stable` = the moving target; `1.85` = the pinned MSRV (edition 2024 floor)
rust:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --all
no_std:
name: no_std build (bare-metal target)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: thumbv7em-none-eabihf
# Builds the library only (no dev-deps), for a target with no std — proof that
# #![no_std] genuinely holds, not just on the host.
- run: cargo build --lib --target thumbv7em-none-eabihf