]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Skip GOARCH=386 test on darwin and try to minimize step outputs
authorMatt Joiner <anacrolix@gmail.com>
Mon, 12 May 2025 07:49:43 +0000 (17:49 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 12 May 2025 07:49:43 +0000 (17:49 +1000)
.github/workflows/go.yml

index b1387772530e64ebd478a4bb332f60a17b8f1a37..9a1331b6820990e50dee3532e75dec8997f740ce 100644 (file)
@@ -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: |