Skip to content

Commit

Permalink
support arm64 race on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
timandy committed Jun 13, 2024
1 parent 06b2168 commit ca5e4d0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ jobs:
arch: armv7
- os: darwin
arch: arm64
go: 1.18
- os: darwin
arch: arm64
go: 1.19
- os: darwin
arch: loong64
- os: darwin
Expand Down Expand Up @@ -195,6 +199,9 @@ jobs:
include:
# combine runs on
- os: darwin
runs-on: macos-13
- os: darwin
arch: arm64
runs-on: macos-latest
- os: linux
runs-on: ubuntu-latest
Expand All @@ -217,6 +224,13 @@ jobs:
# darwin
- name: 'Test on [darwin] arch [amd64]'
if: ${{ matrix.os == 'darwin' && contains(fromJson('["amd64"]'), matrix.arch) }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...

- name: 'Test on [darwin] arch [arm64]'
if: ${{ matrix.os == 'darwin' && contains(fromJson('["arm64"]'), matrix.arch) }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
Expand All @@ -236,7 +250,6 @@ jobs:
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 1
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...

- name: 'Setup qemu-user-static on [linux] arch [armv6, armv7, arm64, mips, mipsle, mips64, mips64le, ppc64, ppc64le, riscv64, s390x]'
Expand Down Expand Up @@ -305,7 +318,6 @@ jobs:
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 1
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...

# freebsd
Expand Down

0 comments on commit ca5e4d0

Please sign in to comment.