All checks were successful
standards workspaces build + test / jouleclaw-rs (pull_request) Successful in 2m24s
standards workspaces build + test / joule-code-rs (pull_request) Successful in 1m28s
standards workspaces build + test / joulecontract-rs (pull_request) Successful in 53s
standards workspaces build + test / aac-rs (pull_request) Successful in 2m37s
standards workspaces build + test / map-rs (pull_request) Successful in 56s
standards workspaces build + test / mesh-rs (pull_request) Successful in 51s
standards workspaces build + test / openpay (pull_request) Successful in 3m25s
standards workspaces build + test / jouledesk-rs (pull_request) Successful in 52s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 4m4s
lockfiles / every Cargo.lock is current (pull_request) Successful in 44s
standards workspaces build + test / arl-rs (pull_request) Successful in 1m22s
standards workspaces build + test / eoc-rs (pull_request) Successful in 2m7s
standards workspaces build + test / joule-ui-rs (pull_request) Successful in 1m13s
standards workspaces build + test / jcp-rs (pull_request) Successful in 2m51s
standards workspaces build + test / joulehook-rs (pull_request) Successful in 1m17s
standards workspaces build + test / proof-rs (pull_request) Successful in 1m22s
standards workspaces build + test / sense-rs (pull_request) Successful in 1m14s
standards workspaces build + test / sandbox-rs (pull_request) Successful in 2m23s
workflow hygiene / every workflow supersedes its own queue (pull_request) Successful in 4s
standards workspaces build + test / smart-byte-rs (pull_request) Successful in 3m51s
The workspaces here depend on one another by path, so a version bump in one leaves its dependents' lockfiles behind. Only jobs that pass --locked notice, and they fail on changes that never touched them. This job resolves each workspace against its lock on every push (cargo update --workspace --locked: no crate is downloaded and nothing is built) and names the stale ones with the command that fixes each. A self-test shows the check fails on a bumped path dependency, an added dependency, a missing lock and an unparseable manifest. Co-Authored-By: Claude Opus 5.5 <[email protected]>
51 lines
1.9 KiB
YAML
51 lines
1.9 KiB
YAML
name: lockfiles
|
|
|
|
# Every committed Cargo.lock is current: cargo would not change it.
|
|
#
|
|
# The workspaces in this tree depend on one another by path. A version bump in
|
|
# one leaves the lockfiles of its dependents behind, and nothing says so until
|
|
# a job that passes `--locked` fails on a change that never touched it. This
|
|
# job says so on the change that caused it, in about a minute: it resolves each
|
|
# workspace against its lock (scripts/check-lockfiles.sh), downloading no crate
|
|
# and building nothing.
|
|
#
|
|
# No `paths:` filter, on purpose. On this forge a filter matches the files of
|
|
# the push, not of the pull request, so a later push that touches no manifest
|
|
# would leave the head with no run of this check, and a stale lock would merge
|
|
# under a green list. The job is short enough to run on every push.
|
|
|
|
# One run per branch at a time. A push supersedes the run before it.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
current:
|
|
name: every Cargo.lock is current
|
|
runs-on: linux
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# The docker runner ships no Rust, so rustup is bootstrapped.
|
|
- name: Install Rust 1.98.0
|
|
shell: bash
|
|
run: |
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
command -v rustup >/dev/null 2>&1 || \
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.98.0
|
|
rustup toolchain install 1.98.0 --profile minimal
|
|
rustup default 1.98.0
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
|
|
# The check must be able to fail, or it is decoration.
|
|
- name: The check fails closed (self-test)
|
|
run: ./scripts/check-lockfiles-selftest.sh
|
|
|
|
- name: Every Cargo.lock is current
|
|
run: ./scripts/check-lockfiles.sh
|