Skip to content

Add CI workflow - #3

Merged
emoss08 merged 2 commits into
mainfrom
claude/hopeful-hawking-8fzwfa
Nov 5, 2026
Merged

emoss08 merged 2 commits into
mainfrom
claude/hopeful-hawking-8fzwfa

Conversation

@emoss08

@emoss08 emoss08 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Adds .github/workflows/ci.yml, which runs on pushes to main and on pull requests.

Job What it runs
Format and clippy cargo fmt --check, then cargo clippy --all-targets --locked -- -D warnings, using the lints already configured in Cargo.toml and clippy.toml
Test (ubuntu, macos) cargo test --locked. The gocut watch tests are Linux-only through cfg.
Minimum Rust version (1.88) cargo test --locked on Rust 1.88
Toy matrix (shadow, active) Builds the release binary, then runs scripts/toy-matrix.sh on Go 1.27.1 with MODES="default nl nld"

Also in this PR:

  • rust-version = "1.88" in Cargo.toml. I tested this: Rust 1.87 fails to build because it lacks let chains, slice_as_chunks, cast_signed and is_multiple_of. Rust 1.88 builds and passes the tests. The README's previous "Rust 1.85" was wrong.
  • README: a CI badge, the corrected minimum Rust version, and a short note about CI under Development.

Go 1.27.2 and later get no reuse

While setting up the toy matrix I ran it on three Go patch releases:

Go Result
1.27.1 Passes. Shadow mode: 106 matches. Active mode on all three flag modes: 0 failures.
1.27.2 Every changed dependency is blocked with dot import of ex/a. No scenario dot-imports anything; the check that fires is rec.roots.all.contains(p) in decide, at src/main.rs:431.
1.27.3 Patching fails with export data version 5 is not one gocut supports ([4]).

Both failures are on the safe side: gocut compiles the package normally, so builds stay correct and only lose speed. CI pins Go 1.27.1 through GO_VERSION, and the README's Requirements now say so. Fixing gocut for newer releases is outside this PR.

Checks run locally

  • cargo fmt --check passes.
  • cargo clippy --all-targets reports no warnings.
  • cargo test passes: 26 tests.
  • cargo +1.88 test --locked passes.
  • The toy matrix passes on Go 1.27.1 in shadow mode (default and nl modes) and in active mode (all three modes).
  • The macOS job has not been run locally: cross-compiling zstd-sys needs the macOS SDK. This PR's own CI run will be the first test.

Generated by Claude Code

Runs on pushes to main and on pull requests:
- cargo fmt --check and clippy with warnings as errors
- unit tests on Linux and macOS
- build and test on the minimum Rust version, 1.88 (now declared as
  rust-version in Cargo.toml; 1.87 lacks let chains and slice_as_chunks)
- the toy matrix in shadow and active mode, all three flag modes, on
  Go 1.27.1

README: CI badge, the corrected minimum Rust version, and a note that
Go 1.27.2 and 1.27.3 currently get no reuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AcYXsMTRwCcvgt9sytvXPU
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AcYXsMTRwCcvgt9sytvXPU
@emoss08
emoss08 marked this pull request as ready for review November 5, 2026 14:45
@emoss08
emoss08 merged commit e7dce0f into main Nov 5, 2026
6 checks passed
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