Skip to content

ci: refresh Actions, restore fmt, and cache with rust-cache - #4

Merged
undivisible merged 1 commit into
mainfrom
ci/modernize-gha
Sep 15, 2026
Merged

undivisible merged 1 commit into
mainfrom
ci/modernize-gha

Conversation

@undivisible

@undivisible undivisible commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CI hygiene only (no library API changes). Independent of #1.

  • actions/checkout@v5 (Node 24)
  • Swatinem/rust-cache@v2 instead of actions/cache@v4 hashing a gitignored Cargo.lock
  • mlugg/setup-zig@v2 (maintained successor of goto-bus-stop/setup-zig)
  • restore cargo fmt --check on Ubuntu
  • clippy --all-targets, fail-fast: false, permissions: contents: read
  • docs job now actually uses RUSTDOCFLAGS: -D warnings

Does not change C -fPIC flags (that lives in #1, which is currently red on Windows).

Test plan

  • GitHub Actions on this PR

Note

Low Risk
Changes are limited to GitHub Actions configuration and composite action docs; no application logic, auth, or data handling is modified.

Overview
CI-only refresh across the main workflow and the composite setup-equilibrium action—no library/runtime code changes.

Actions upgrades: actions/checkout@v4 → v5 everywhere; Zig install moves from goto-bus-stop/setup-zig@v2 to mlugg/setup-zig@v2 (docs and workflows aligned).

Caching: Manual actions/cache@v4 keys (including paths that could miss effective cache keys) are replaced with Swatinem/rust-cache@v2 in CI jobs and in the setup action when cache: true.

Stricter Rust gates: Workflow adds permissions: contents: read, global RUSTFLAGS: -D warnings, matrix fail-fast: false, pins test toolchain to dtolnay/rust-toolchain@stable with clippy/rustfmt components, restores cargo fmt --check on Ubuntu, and runs clippy with --all-targets. The docs job drops a redundant duplicate doc step and applies RUSTDOCFLAGS: -D warnings on the actual cargo doc run.

Reviewed by Cursor Bugbot for commit a0ebeb8. Configure here.

Use checkout@v5, Swatinem/rust-cache, and mlugg/setup-zig. Restore
cargo fmt as a CI gate, run clippy on all targets, and fail-fast
false so one OS does not hide the rest.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a631-cbad-764e-a59c-662f4c6e0902
Co-authored-by: Max Carter <undivisible@vk.com>
@capy-ai

capy-ai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Capy couldn't review this pull request because Max's workspace is out of credits, add credits or enable auto-reload to resume automatic reviews.

Open in Capy

@cursor

cursor Bot commented Sep 15, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_6072dd94-d1f8-4cff-ae9f-6ba525492534)

@mergify

mergify Bot commented Sep 15, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@undivisible
undivisible merged commit dcab56f into main Sep 15, 2026
8 checks passed
@undivisible
undivisible deleted the ci/modernize-gha branch September 15, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants