Skip to content

ci: fix release builds and make the target matrix honest - #1

Merged
pvik merged 2 commits into
mainfrom
fix/release-workflow
Oct 15, 2026
Merged

pvik merged 2 commits into
mainfrom
fix/release-workflow

Conversation

@pvik

@pvik pvik commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Why

v0.42 published with zero assets (run 38655660359). Two separate problems.

1. Linux builds failed outright

# [pkg-config --cflags  -- gl gl]
Package gl was not found in the pkg-config search path.
./glfw/src/wl_platform.h:27:10: fatal error: wayland-client-core.h: No such file or directory
  • On Ubuntu 24.04 (today's ubuntu-latest), libgl1-mesa-dev is a transitional dummy package that ships no files — it only Depends: libgl-dev, libglvnd-dev. cache-apt-pkgs-action caches the named packages' own file lists, so it cached nothing and gl.pc never reached the disk. The step reported success while installing nothing useful.
  • go-gl/glfw/v3.4 (via fyne v2.8) enables both X11 and Wayland by default, so it also needs libwayland-dev, libxkbcommon-dev and wayland-protocols. The old package list predates that.

Fixed by installing the real packages with plain apt-get, dropping the caching action (and its floating @latest ref) entirely.

2. The matrix never did what it claimed

The six Rust-style target triples were never backed by GOOS/GOARCH/CC — the build step just ran go build natively:

old matrix.target runner what it actually produced
x86_64-unknown-linux-musl ubuntu x86_64 linux/amd64, glibc not musl
armv7-unknown-linux-musleabihf ubuntu x86_64 linux/amd64 — byte-identical
aarch64-unknown-linux-musl ubuntu x86_64 linux/amd64 — byte-identical
x86_64-apple-darwin macos arm64 darwin/arm64, not x86_64
aarch64-apple-darwin macos arm64 darwin/arm64 — byte-identical
x86_64-pc-windows-msvc windows windows/amd64, MinGW not MSVC

Six jobs, three distinct binaries, every one mislabeled. v0.4 has been shipping an aarch64-unknown-linux-musl asset that cannot run on aarch64.

Replaced with five runners that natively produce each target, named for what they actually are.

Also fixed

  • fail-fast: false — the windows/macOS jobs were cancelled, never actually run. That masked a latent Windows failure: the checksum step ran under pwsh, where shasum doesn't exist. Both shell steps now pin bash.
  • go-version-file: go.mod — replaces a hardcoded 1.23 against go.mod's 1.27. It only worked because GOTOOLCHAIN=auto quietly downloaded a second toolchain.
  • Dropped go install fyne.io/fyne/v2/cmd/fyne@latest — the build never invokes the fyne CLI, and assets are embedded via //go:embed. Pure cost plus a floating-ref breakage vector.
  • All actions bumped to current majors, clearing the logged Node.js 20 is deprecated warning. Inputs verified against each action.yml.
  • workflow_dispatch added, so a release build can be re-run on demand without deleting a release.

Breaking change for consumers

The armv7 and musl asset names disappear. They have no hosted runner and cgo+fyne cross-compilation needs full arm sysroots for GL/X11/Wayland. Anyone who downloaded them before was getting an amd64 glibc binary regardless — worth a line in the release notes.

Verification

  • actionlint clean (it validates runner labels, so ubuntu-24.04-arm and macos-15-intel are both confirmed real).
  • go build -trimpath ./cmd/... succeeds locally on go1.27.1.
  • This PR run is the check that matters: with fail-fast: false it's the first time all five platforms report independently. windows and both macOS targets haven't actually been exercised since 2023. The five .sha256 values should now be five distinct hashes — that's the direct proof the matrix problem is gone.

🤖 Generated with Claude Code

pvik and others added 2 commits October 14, 2026 20:06
The v0.42 release published with zero assets. Two separate problems.

Linux builds failed outright:

    Package gl was not found in the pkg-config search path.
    wl_platform.h:27:10: fatal error: wayland-client-core.h: No such file

On Ubuntu 24.04 libgl1-mesa-dev is a transitional dummy package with no
files of its own, so cache-apt-pkgs-action cached nothing and gl.pc never
reached the disk -- the step reported success while installing nothing.
Separately, go-gl/glfw/v3.4 (via fyne v2.8) enables both X11 and Wayland
by default and needs the wayland/xkbcommon headers too. Install the real
packages with plain apt instead of the caching action.

The matrix also never did what it claimed: the six Rust-style target
triples were never backed by GOOS/GOARCH/CC, so all three ubuntu jobs
emitted the same linux/amd64 glibc binary, both macos jobs the same
darwin/arm64 binary, and "msvc" was MinGW. Six jobs, three distinct
binaries, every one mislabeled -- v0.4 has been shipping an
aarch64-unknown-linux-musl asset that cannot run on aarch64.

Replace them with five runners that natively produce each target, named
for what they actually are. armv7 and musl are dropped; they have no
hosted runner and cgo+fyne cross-compilation needs full arm sysroots.

Also:
- fail-fast: false, so one platform's failure stops masking the others.
  The windows and macos jobs were cancelled, never actually run, which
  hid that the checksum step would have failed on windows anyway: it ran
  under pwsh, where shasum does not exist. Both steps now pin bash.
- go-version-file: go.mod, replacing a hardcoded 1.23 against go.mod's
  1.27 -- it only worked because GOTOOLCHAIN=auto fetched a second
  toolchain behind the scenes.
- Drop `go install fyne.io/fyne/v2/cmd/fyne@latest`; the build never
  invokes the fyne CLI and assets are embedded via //go:embed.
- Bump all actions to current majors, clearing the Node 20 deprecation.
- Add workflow_dispatch to re-run a build without touching a release.

Co-Authored-By: Claude Opus 5 <[email protected]>
The first matrix run with fail-fast disabled surfaced what the old
cancel-on-first-failure had been hiding: the windows build itself is
fine, but the checksum step died with

    shasum: command not found   (exit 127)

git-bash on windows-latest ships neither shasum nor, assume, sha256sum,
and macos ships only shasum. Try each in turn and fall back to certutil,
which is always present on windows. Echo the digest so the value is
visible in the log.

Co-Authored-By: Claude Opus 5 <[email protected]>
@pvik
pvik merged commit 72e883e into main Oct 15, 2026
5 checks passed
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