Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ci: run weed tests on linux/386 (#9924)

Chris Luc3b06bf80904
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 91429fea9a..8c97bed1e0 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 ./...