Cross-compile the ARM targets in CI and the gate

Releases ship linux/arm (ARMv6 and ARMv7) and linux/arm64 binaries built
without cgo, but until now nothing compiled those targets before a tag
was pushed. The job store's SQLite driver is Go transpiled from C, with
code of its own for each architecture, so a build that works on amd64
can fail for ARM.

test.yml and make check now build the daemon for linux/arm with GOARM=6
and for linux/arm64, with CGO_ENABLED=0, and discard the binaries. The
ARMv6 build stands for ARMv7 as well. CLAUDE.md lists the two builds in
the gate, run from Git Bash, since PowerShell cannot set variables for
one command.

Part of stage 1d of docs/plans/job-store.md (decision 15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-12-01 16:34:34 -06:00
1 parent 8609f3be27
commit 60baa843ef
4 files changed
+39 -16

No files matched your search

+11 -7
View File
@@ -78,18 +78,22 @@ works from PowerShell and fails from Git Bash.
go tool staticcheck ./...
go generate ./... && git diff --exit-code -- docs/swagger.json THIRD-PARTY-LICENSES.md internal/app/uberbringer/licenses_embed.md # generated files are up to date
go test -race -timeout 5m ./... *> "$env:TEMP\uberbringer-test.txt"; "exit $LASTEXITCODE"
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -o /dev/null ./cmd/uberbringer # in Git Bash
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o /dev/null ./cmd/uberbringer # in Git Bash
go tool govulncheck ./... # after any dependency or toolchain change, and before a tag
goreleaser release --snapshot --clean # into dist/; after a change to .goreleaser.yaml or packaging/
Read the test output back from the file. The per-package `-timeout 5m` makes a
hung test fail with every goroutine's stack. Without it, the tool's own time
limit would kill the run first. staticcheck, goimports and govulncheck are
pinned as tools in `go.mod`, so never install them separately.
`.gitea/workflows/test.yml` runs the same gate, with `goreleaser check` in
place of the snapshot, on every branch push. It builds no binaries: only
`release.yml` does, for `v*` tags on main. `security.yml` runs govulncheck
weekly and on pushes to main. A change is done when the gate passes and the
docs under `docs/` (or `README.md`) and CHANGELOG.md say what changed.
limit would kill the run first. The ARM builds set their variables inline,
which PowerShell cannot; they need no cgo, so Git Bash runs them.
staticcheck, goimports and govulncheck are pinned as tools in `go.mod`, so
never install them separately. `.gitea/workflows/test.yml` runs the same
gate, with `goreleaser check` in place of the snapshot, on every branch
push. It keeps no binaries: only `release.yml` builds release binaries, for
`v*` tags on main. `security.yml` runs govulncheck weekly and on pushes to
main. A change is done when the gate passes and the docs under `docs/` (or
`README.md`) and CHANGELOG.md say what changed.
## Go version