Skip to content

tests: support 32-bit architectures - #98

Closed
henriquejsza wants to merge 1 commit into
flyingmutant:masterfrom
henriquejsza:fix/96-32-bit-tests
Closed

henriquejsza wants to merge 1 commit into
flyingmutant:masterfrom
henriquejsza:fix/96-32-bit-tests

Conversation

@henriquejsza

Copy link
Copy Markdown

Fixes #96.

Summary

  • keep 64-bit-only integer test cases conditional without 32-bit compile-time overflows
  • make deterministic examples architecture-independent while preserving int types where their APIs expose them
  • use fixed-width integers for reflection-generated example types
  • run the test suite with GOARCH=386 in the existing Linux CI matrix

No library behavior is changed.

Validation

  • go test -race ./... (Go 1.26.5 and Go 1.23.12)
  • GOARCH=386 go test ./... (Go 1.26.5 and Go 1.23.12)
  • go vet ./... and GOARCH=386 go vet ./...
  • Linux/ARM and Windows/amd64 test-binary cross-compilation
  • go test -run=Benchmark -bench=. ./...
  • gofmt -l .
  • actionlint v1.7.7 .github/workflows/ci.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing support on 32-bit systems (at least test suite)

1 participant