diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 91429fea9..8c97bed1e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -77,3 +77,19 @@ jobs: go-version-file: 'go.mod' - name: Test run: cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./... + + test-32bit: + name: Test 32-bit + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v6 + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + # 386 test binaries run natively on the amd64 runner. This catches what vet + # can't: unaligned 64-bit atomics and arithmetic that wraps at runtime. + # -short skips the e2e suites already covered on amd64. + - name: Test linux/386 + run: cd weed; GOOS=linux GOARCH=386 go test -short ./...