From 8d5f6f1e16f360d5beffccade5f87cb7fa8f608c Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 9 Nov 2026 13:18:22 +0100 Subject: [PATCH] ci: cross-compile for the six 64-bit Linux architectures Every go-widgets module is held to amd64, arm64, riscv64, loong64, ppc64le and s390x (the docs' Modules page says so), and this repository did not check it. go vet per architecture compiles the tests too. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 987c463..d6d0b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,27 @@ jobs: GOARCH: "386" run: go test -count=1 ./... + # Every go-widgets module cross-compiles for the six 64-bit Linux + # architectures, s390x the big-endian one. vet compiles the tests too. + cross: + name: cross linux/${{ matrix.arch }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: [amd64, arm64, riscv64, loong64, ppc64le, s390x] + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + - name: vet, tests included + env: + GOOS: linux + GOARCH: ${{ matrix.arch }} + CGO_ENABLED: "0" + run: go vet ./... + govulncheck: runs-on: ubuntu-latest steps: