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
name: ci
on:
push:
branches:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
targets: wasm32-unknown-unknown
- run: cargo fmt --check
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace
- run: cargo check --workspace --target wasm32-unknown-unknown
- run: bash scripts/caps.sh
# `rust-version = "1.85"` is a PUBLISHED promise. Unverified, it rots the
# first time someone uses a newer std method — and the rot only surfaces in
# a downstream build. Make the claim mechanical, like every other one here.
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: msrv
run: |
v=$(grep -m1 '^rust-version = ' Cargo.toml | cut -d'"' -f2)
echo "version=$v" >> "$GITHUB_OUTPUT"
echo "workspace claims MSRV $v"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.msrv.outputs.version }}
- run: cargo check --workspace --all-targets