Skip to content

Publish compiler releases only from semantic version tags - #1383

Open
Frotty wants to merge 3 commits into
masterfrom
codex/versioned-compiler-releases
Open

Frotty wants to merge 3 commits into
masterfrom
codex/versioned-compiler-releases

Conversation

@Frotty

@Frotty Frotty commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Every master push currently republishes nightly, so development commits immediately become compiler updates. This replaces that flow with deliberate versioned releases starting at 2.0.0. Master/PR CI continues to test but no longer packages or publishes nightly.

Companion extension draft: wurstscript/wurst4vscode#150. Explicit version choices stay pinned until users select Follow latest stable.

The release workflow accepts only vMAJOR.MINOR.PATCH tags matching version.txt, pointing at the checkout and belonging to origin/master. All four platforms run tests and package the compiler before one publication job assembles the complete release. Existing published release assets cannot be replaced. Checksums accompany the platform ZIPs.

Exact release tags print a plain semantic version; other builds print VERSION-dev+COMMIT. Release preparation and the transition order are documented in docs/RELEASING.md: merge the compiler workflow, publish v2.0.0, then ship the companion extension. No actual compiler tag or release is created by this PR.

Validation: six release-gate tests with real Git histories; production Gradle metadata checks for nightly/exact annotated release/post-release commits; MainTests; shadowJar; Windows slim runtime packaging and bundled-runtime -version check; actionlint and diff checks. Four-platform CI and actual GitHub publication remain to run after review/merge and release tagging.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T05:21:46.569960Z 1d82704 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty
Frotty marked this pull request as draft October 8, 2026 12:48
@Frotty
Frotty marked this pull request as ready for review October 13, 2026 05:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d82704f79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +105 to +106
actual=$("$JAVA_BIN" -jar build/dist/slim-${{ matrix.plat }}/wurst-compiler/wurstscript.jar -version)
test "$actual" = "$RELEASE_VERSION"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Normalize Windows version output before comparing

In the windows-latest matrix job, this runs native java.exe under Git Bash. System.out.println emits CRLF on Windows, while Bash command substitution strips the trailing LF but retains the \r, so actual becomes 2.0.0\r and cannot equal RELEASE_VERSION. Because publish requires the entire build matrix, every release is blocked at this check; strip the carriage return or otherwise normalize the captured output before comparing.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

1 participant