Skip to content

Commit

Permalink
🏗️ gh-actions: drop GOAMD64=v3 from test workflows
Browse files Browse the repository at this point in the history
GOAMD64=v3 causes sporadic test failures because some macOS runners only have x86-64-v2.
  • Loading branch information
database64128 committed May 20, 2024
1 parent aa7dab5 commit 374f3eb
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4
Expand All @@ -35,15 +32,13 @@ jobs:
go-version-file: go.mod

- name: Build
run: |
export GOAMD64=v3
go build -v -trimpath -ldflags '-s -w' ./cmd/swgp-go
run: go build -v -trimpath -ldflags '-s -w' ./cmd/swgp-go

- name: Test
run: go test -v -benchmem -bench . ./...
run: go test -v ./...

- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: swgp-go-${{ github.sha }}-${{ matrix.os }}-x86-64-v3
name: swgp-go-${{ github.sha }}-${{ matrix.os }}-x86-64
path: swgp-go*

0 comments on commit 374f3eb

Please sign in to comment.