Skip to content

ci: build the windows targets goreleaser already ships - #44

Merged
alexshapalov merged 1 commit into
pgrundev:mainfrom
lofoneh:ci/windows-build-parity
Sep 17, 2026
Merged

alexshapalov merged 1 commit into
pgrundev:mainfrom
lofoneh:ci/windows-build-parity

Conversation

@lofoneh

@lofoneh lofoneh commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What and why

.goreleaser.yaml ships [linux, darwin, windows] × [amd64, arm64], but the CI
build matrix and scripts/gate.sh both stop at linux and darwin — so no Windows
target compiles anywhere until the release job runs at tag time. That's the same
"green somewhere else hid a break" failure mode gate.sh exists to prevent.

  • CI matrix and gate.sh now build every released target — 6 instead of 4, still
    CGO_ENABLED=0 cross-compiles on ubuntu-latest (no Windows runner minutes).
  • .gitignore gains /pgbot.exe: a root go build ./cmd/pgbot emits that name on
    Windows, /pgbot doesn't match it, so Windows contributors start with a dirty
    tree — which gate.sh then refuses to gate.

No change to the binary's behavior.

Verification

windows/amd64, Go 1.27.1, golangci-lint 2.13.2, rebased on current main:

$ scripts/gate.sh
✓ HEAD builds, vets, and tests clean (6 targets)

Checklist

  • scripts/gate.sh passes (builds HEAD, not just the working tree)
  • Remaining items n/a — no SQL, no model.Context/--json change, no new finding.

.goreleaser.yaml releases linux, darwin and windows on amd64 and arm64, but
the CI build matrix and scripts/gate.sh both stopped at linux and darwin. A
Windows-breaking change was therefore only discoverable at tag time, by the
release job — the same "green somewhere else hid a break" failure mode gate.sh
exists to prevent. Cross-compiling costs one more job.

Also ignore /pgbot.exe: `go build ./cmd/pgbot` in the repo root emits pgbot.exe
on Windows, which /pgbot does not match, so every Windows contributor starts
with a dirty tree — and gate.sh refuses to gate a dirty tree.
@lofoneh
lofoneh force-pushed the ci/windows-build-parity branch from aea0217 to abd4cca Compare September 9, 2026 09:35
@alexshapalov

Copy link
Copy Markdown
Contributor

tnx! good work

@alexshapalov
alexshapalov merged commit 3f4af99 into pgrundev:main Sep 17, 2026
19 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.

2 participants