3x-ui/.github/workflows
n0ctal dc1979a14c
ci(release): stamp released binaries with their source revision (#6223)
* ci(release): stamp released binaries with their source revision

The release job builds `main.go`, which Go records as a file list rather than a
package, so the binary carries no VCS metadata at all: `go version -m xui-release`
reports command-line-arguments and nothing else. There is no way to tell which
commit a published binary came from, which is exactly what you want when a user
reports a bug against "the latest release".

Build the package with -buildvcs=true instead. Same output, same flags, plus
vcs.revision and vcs.time in the binary.

* ci(release): give the Windows job the git it needs to stamp

-buildvcs=true fails the build when it cannot read VCS state, and the MSYS2
shell the Windows job runs in has no git on PATH. Install it there so the
Windows binary carries the same revision as the Linux ones instead of the flag
turning into a build break.

---------

Co-authored-by: n0ctal <n0ctal@users.noreply.github.com>
2026-08-18 11:37:03 +02:00
..
ci.yml chore(deps): migrate to react-router 8 and refresh frontend dependencies 2026-07-25 02:07:15 +02:00
claude-bot.yml fix(ci): resync the bot prompts with the repo and close the gaps an audit found 2026-08-17 02:41:21 +02:00
cleanup_caches.yml Run cache cleanup daily and reduce cutoff to 1 day 2026-04-21 20:36:28 +02:00
codeql.yml chore(deps): bump actions/setup-node from 6 to 7 (#5992) 2026-07-16 13:13:55 +02:00
docker.yml ci: attach provenance and SBOM attestations to the published images (#6130) 2026-08-15 16:59:11 +02:00
docs-ci.yml chore(deps): bump actions/setup-node from 6 to 7 (#5992) 2026-07-16 13:13:55 +02:00
docs-deploy.yml chore(deps): bump actions/setup-node from 6 to 7 (#5992) 2026-07-16 13:13:55 +02:00
mutation.yml chore(deps): bump actions/setup-go from 6 to 7 (#5995) 2026-07-16 13:14:27 +02:00
release.yml ci(release): stamp released binaries with their source revision (#6223) 2026-08-18 11:37:03 +02:00
smoke.yml fix(ci): stop executing tag-checkout code in the release smoke test 2026-07-07 01:23:10 +02:00