From f3f9ce0fa60eda8104b6de473a7299433f2b7523 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 12 May 2025 17:49:43 +1000 Subject: [PATCH] Skip GOARCH=386 test on darwin and try to minimize step outputs --- .github/workflows/go.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b1387772..9a1331b6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,10 +23,15 @@ jobs: 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: | -- 2.51.0