From 36e8164daa45e431473482fa9324c2e80a9673ac Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sat, 10 Oct 2026 21:43:11 +0200 Subject: [PATCH] CI: cross-build Linux on all six 64-bit architectures, and arm64 for macOS and Windows Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecff40a..7065f58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,8 +81,19 @@ jobs: name: cross-build runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - goos: [linux, darwin, windows] + include: + - { goos: linux, goarch: amd64 } + - { goos: linux, goarch: arm64 } + - { goos: linux, goarch: riscv64 } + - { goos: linux, goarch: loong64 } + - { goos: linux, goarch: ppc64le } + - { goos: linux, goarch: s390x } + - { goos: darwin, goarch: arm64 } + - { goos: darwin, goarch: amd64 } + - { goos: windows, goarch: amd64 } + - { goos: windows, goarch: arm64 } steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 @@ -90,5 +101,6 @@ jobs: go-version: 1.27.1 - env: GOOS: ${{ matrix.goos }} + GOARCH: ${{ matrix.goarch }} CGO_ENABLED: "0" run: go build ./...