Skip to content

Conversation

@vmaerten
Copy link
Member

@vmaerten vmaerten commented Dec 14, 2025

Summary

Similar to our nightly builds, but for PRs!

Currently, testing a PR requires having Go installed locally to build from source. This makes it harder for users to help test fixes or new features before they're merged.

This adds a workflow that builds binaries on-demand when a maintainer adds the needs-build label to a PR. Binaries are uploaded as artifacts and a comment is posted with the download link.

This will uses our task-bot.

This PR could benefits this feature

Note

The label is needs-build but it can be modified. We can also use somesthing like a comment but it's harder to detect

Example:

image

Add a workflow that builds binaries for PRs when the `needs-build` label
is added. Uses GoReleaser with a minimal config to produce archives
for Linux, macOS, and Windows (amd64/arm64).

- Triggered by adding `needs-build` label or pushing while label present
- Uses `pull_request_target` for secure access to secrets on fork PRs
- Uploads each platform as a separate downloadable artifact
- Posts/updates a comment with link to download artifacts
- Supports GH_PAT for task-bot comments, falls back to github-actions[bot]
@vmaerten vmaerten changed the title feat(ci): add on-demand PR build workflow chore(ci): add on-demand PR build workflow Dec 14, 2025
@vmaerten vmaerten marked this pull request as ready for review December 14, 2025 14:44
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