run: |
cd storage/possum/lib
cargo build --lib
- - run: go test -race -bench . -benchtime 2x ./...
+ # Separate to remove downloading spam and possible caching improvement.
+ - run: go mod download
+ - run: go test -race ./...
+ # Separate benchmarks because I think it modifies the stderr handling.
+ - run: go test -race -bench . -benchtime 2x -run @ ./...
# Test on 386 for atomic alignment and other bad 64-bit assumptions
- - run: GOARCH=386 go test -run @ ./...
+ - if: matrix.os != 'macos-latest'
+ run: GOARCH=386 go test -run @ ./...
- name: Some packages compile for WebAssembly
run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
- run: |