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

+8 -4
View File
@@ -39,6 +39,7 @@ The Go version is the `go 1.27.4` line in `go.mod`, the latest Go release:
```sh
make check # the CI gate, below
make build # bin/uberbringer
make build-arm # builds for linux/arm (ARMv6) and linux/arm64, then discards them
make fmt # gofmt + goimports
make vuln # govulncheck
make generate # regenerate docs/swagger.json and the license notices (go generate ./...)
@@ -48,8 +49,10 @@ make snapshot # release archives in dist/; publishes nothing
`make check` runs the same steps as `.gitea/workflows/test.yml`, in the same
order: gofmt and goimports, `go mod tidy -diff`, `go vet`, staticcheck, a
check that `go generate ./...` leaves the generated files unchanged,
`go test -race -timeout 5m`, and `goreleaser check`, which validates the
release config without building. It needs goreleaser installed.
`go test -race -timeout 5m`, builds for linux/arm (ARMv6) and linux/arm64
without cgo, as releases are built, whose binaries it discards, and
`goreleaser check`, which validates the release config without building.
It needs goreleaser installed.
govulncheck is not part of it; run `make vuln`. Run `make snapshot` after
changing `.goreleaser.yaml` or `packaging/`. `make` builds report the
version without the leading `v`, e.g. `0.1.2-3-gabc1234`, as release
@@ -109,8 +112,9 @@ docs/ User docs, API reference, OpenAPI document, design n
CI runs on the Gitea runner from `.gitea/workflows/`. The repository has no
`.github/` directory.
- `test.yml` runs the `make check` gate on every branch push. It builds no
binaries, and it does not run on pull requests or tags.
- `test.yml` runs the `make check` gate on every branch push. It keeps none
of the binaries it builds for ARM, and it does not run on pull requests
or tags.
- `security.yml` runs govulncheck on pushes to main and every Monday at
06:00 UTC. Scheduled runs use main's copy of the workflow.
- `release.yml` builds and publishes a release with goreleaser 2.20.3 when a