-
Notifications
You must be signed in to change notification settings - Fork 2
Migrate to the tag-driven release standard, in-repo #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Crates Release | ||
| # The five rainlang crates publish to crates.io on merge to main via | ||
| # rainix-autopublish's next-version lifecycle, as a lockstep set in dependency | ||
| # order: changing any member republishes the others with matching version pins. | ||
| # `rainlang_test_fixtures` depends on none of the others but is released with | ||
| # them so its embedded bytecode stays in step. | ||
| # | ||
| # DELIBERATELY separate from `package-release.yaml`, which is the same split | ||
| # rain.math.float.deploy made. The Soldeer `rainlang` package is a deploy | ||
| # artifact that only advances at deploy time behind a chain-verified `sol-v*` | ||
| # tag; the crates are bindings whose version tracks binding-code changes. Held | ||
| # in one workflow, autopublish's own next-version invariant applied to both | ||
| # halves at once and the Soldeer half — already at its published version by | ||
| # design — blocked the crates from ever bumping. | ||
| # | ||
| # No `soldeer-package` input here for that reason: this half publishes crates | ||
| # only. | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| release: | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-autopublish.yaml@main | ||
| with: | ||
| crates: rainlang_bindings rainlang_dispair rainlang_parser rainlang-eval rainlang_test_fixtures | ||
| secrets: inherit | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Git is clean | ||
| on: [push] | ||
| jobs: | ||
| copy-artifacts: | ||
| # Shared reusable (rainix#201): rebuild the committed artifacts from | ||
| # committed sources — `script/Build.sol`, `forge build`, CopyArtifacts, | ||
| # `forge fmt` — then `git diff --exit-code`. This is what makes the | ||
| # committed `src/generated/` record current at PR time rather than only at | ||
| # tag time. Includes the Cachix substitution + 8G GC cap; no prelude | ||
| # (committing the artifacts is what removes the need for one). | ||
| # secrets: inherit carries CACHIX_AUTH_TOKEN. | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-copy-artifacts.yaml@main | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,33 @@ | ||
| name: Package Release | ||
| # Deploy-shaped repo: the `rainlang` Soldeer package is released by a manual | ||
| # `sol-v*` tag via rainix-tag-release, never by a merge. | ||
| # | ||
| # rainix-autopublish's merge-driven next-version lifecycle is wrong for this | ||
| # shape. `[external.package].version` in `foundry.toml` is the LAST published | ||
| # revision and names the frozen `src/generated/<tag>/` record cut with it, so | ||
| # it may only move in lockstep with a deployment that already happened. The | ||
| # tag flow enforces exactly that: it re-runs the suite, then `release-guard` | ||
| # checks version == tag, the frozen dir present, byte-identical to a freshly | ||
| # regenerated `candidate/`, no later release frozen and a clean tree — then | ||
| # publishes. | ||
| # | ||
| # Push-free: the frozen snapshot and the version bump reach main through a | ||
| # reviewed PR BEFORE the tag, and this workflow commits nothing, so it works | ||
| # against a protected main. | ||
| # | ||
| # The Rust crates are NOT released here — see `crates-release.yaml`. They are | ||
| # ordinary bindings whose version tracks code changes and is safe to bump on | ||
| # merge, and coupling them to this trigger is what wedged the release lane. | ||
| # | ||
| # `snapshot-generate-cmd` is deliberately absent: it was removed org-wide and | ||
| # is no longer an input at all. | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| tags: | ||
| - sol-v* | ||
| jobs: | ||
| release: | ||
| # Bumps + publishes the rainlang crates to crates.io as a lockstep set, in | ||
| # dependency order (bindings, dispair, parser, eval, then test_fixtures): | ||
| # changing any member republishes the others with matching version pins, via | ||
| # the PUBLISH_PRIVATE_KEY deploy key. test_fixtures depends on none of the | ||
| # others but is released in lockstep so its embedded bytecode stays in sync. | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-autopublish.yaml@main | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-tag-release.yaml@main | ||
| with: | ||
| crates: rainlang_bindings rainlang_dispair rainlang_parser rainlang-eval rainlang_test_fixtures | ||
| soldeer-package: rainlang | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.