Skip to content

chore: switch releases to use stage2 - #15637

Merged
Garmelon merged 3 commits into
masterfrom
joscha/release-stage2
Oct 12, 2026
Merged

Garmelon merged 3 commits into
masterfrom
joscha/release-stage2

Conversation

@Garmelon

Copy link
Copy Markdown
Contributor

This PR switches normal and nightly releases to use stage2 binaries instead of stage1, meaning that we no longer ship oleans built by stage0. Because of this, we no longer need to override stage0's version number and special description since they no longer end up in the resulting binaries, effectively reverting #12700 and simplifying our build setup. Non-release builds continue to use the original stage1 setup for resource/performance reasons.

This change may also help with caching around stage0, and during development since the version numbers are no longer "sticky" (i.e. stuck to the values that the build directory was originally created with).

Since all release builds now use stage2 binaries, and the version
numbers are always set appropriately on master and the release branches
already, there is no longer a need to be able to override these
variables. Stage0 additionally no longer needs its
LEAN_SPECIAL_VERSION_DESC overridden.

Furthermore, the variables no longer need to be cache variables, and
thus they are no longer "sticky" in build directories during normal
development, which helps with cache invalidation.
@Garmelon
Garmelon requested a review from kim-em as a code owner October 12, 2026 12:44
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 12, 2026
@Garmelon Garmelon added the release-ci Enable all CI checks for a PR, like is done for releases label Oct 12, 2026
@Garmelon Garmelon removed the release-ci Enable all CI checks for a PR, like is done for releases label Oct 12, 2026
@Garmelon
Garmelon enabled auto-merge October 12, 2026 18:43
@Garmelon
Garmelon added this pull request to the merge queue Oct 12, 2026
Merged via the queue into master with commit 6216cc1 Oct 12, 2026
34 checks passed
@Garmelon
Garmelon deleted the joscha/release-stage2 branch October 12, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant