CI (Rust): run in the rust:1.95 image, no setup action or cache
Some checks are pending
Rust crates / cargo test, fmt, clippy (pull_request) Waiting to run
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Has started running

The first run failed before any step: the forge runner did not set up the
toolchain through dtolnay/rust-toolchain, or did not serve actions/cache.
quic-native's Linux build takes its toolchain from a container image; do the
same. Timeout 30 for a cold build with no cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 04:51:47 +01:00
commit efa568202b

View file

@ -20,7 +20,13 @@ jobs:
rust:
name: cargo test, fmt, clippy
runs-on: ubuntu-latest
timeout-minutes: 20
# The toolchain comes from the image, as quic-native's Linux build does: the
# forge runner does not set up toolchains through marketplace actions, and no
# cache is assumed (the first run with a setup action and actions/cache
# failed before any step ran). 1.95 matches the Yggdrasil verify container.
container:
image: rust:1.95-bookworm
timeout-minutes: 30
env:
CARGO_TERM_COLOR: never
CARGO_INCREMENTAL: "0"
@ -29,23 +35,8 @@ jobs:
- name: Check out CultLib
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
# Restores when the runner serves a cache; a miss only costs the cold build.
- name: Cache cargo registry and build output
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
packages/cultcache-rs/target
packages/cultnet-rs/target
packages/cultmesh-rs/target
key: rust-crates-${{ runner.os }}-${{ hashFiles('packages/*-rs/Cargo.lock') }}
restore-keys: rust-crates-${{ runner.os }}-
- name: Add clippy and rustfmt
run: rustup component add clippy rustfmt && cargo --version
# Each crate's `cargo test` builds its path dependencies, so cultmesh-rs
# covers all three libraries; every crate is still run for its own tests.