Skip to content

ci: add foundry-version input for reproducible builds#50

Draft
rubydusa wants to merge 1 commit into
mainfrom
ramgos/foundry-version-input
Draft

ci: add foundry-version input for reproducible builds#50
rubydusa wants to merge 1 commit into
mainfrom
ramgos/foundry-version-input

Conversation

@rubydusa
Copy link
Copy Markdown
Contributor

Closes #43.

Summary

  • Add a foundry-version input to each of the four reusable workflows.
  • Default 'stable' — foundry-toolchain's stable channel, which tracks the latest stable Foundry release.
  • Forward to foundry-rs/foundry-toolchain's version input.
  • README updated.

Why

Today every workflow runs foundry-rs/foundry-toolchain@v1 with no version, which installs nightly. Yesterday's green PR can fail today on a nightly drift, and consumers have no way to opt out.

Behavior change

  • Default consumers move from nightly → stable. This is a real version bump and may surface latent test failures that depended on nightly-only flags. Worth flagging in release notes.
  • Consumers who want nightly back can pass foundry-version: 'nightly'.

Out of scope (follow-ups)

  • Halmos version pinning (`pip install halmos` is unversioned).
  • Exposing the OZ upgrades-core CLI version (currently hard-coded as `OZ_UPGRADES_CORE_VERSION` in `scripts/upgrade-safety/validate.sh`).

Test plan

  • All 25 unit tests pass.
  • YAML validates.
  • CI green.
  • Smoke test against a consumer repo.

🤖 Generated with Claude Code

Add a `foundry-version` input to each reusable workflow, defaulting
to 'stable' (foundry-toolchain's stable channel — latest stable
release). Forward to foundry-rs/foundry-toolchain via the version
input on every Install Foundry step.

Consumers wanting full reproducibility can pin to a specific tag
like 'v1.0.0'.

Out of scope: pinning halmos and the OZ upgrades-core CLI version
(currently hard-coded in scripts/upgrade-safety/validate.sh).

Closes #43
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.

Add foundry-version input for reproducible builds

1 participant