Skip to content

Commit

Permalink
fix -race for macos-latest(arm)
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Apr 27, 2024
1 parent b9aeb7b commit 860ed0d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/go118.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,39 @@ on:

jobs:

macos:
name: Test Go1.18 for macOS
runs-on: macos-latest
steps:

- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.18.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .

- name: Install igop
run: go install -v ./cmd/igop

- name: Go Test
run: go test -v .

- name: Test $GOROOT/test
run: go run ./cmd/igoptest

- name: Go Test race
run: CGO_ENABLED=1 GOARCH=amd64 go test -race -v .


macos:
name: Test Go1.18 for macOS
runs-on: macos-latest
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/go119.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .
run: go test -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/igoptest
run: go run ./cmd/igoptest

- name: Go Test race
run: CGO_ENABLED=1 GOARCH=amd64 go test -race -v .

linux:
name: Test Go1.19 for Linux
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/go120.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .
run: go test -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/igoptest
run: go run ./cmd/igoptest

- name: Go Test race
run: CGO_ENABLED=1 GOARCH=amd64 go test -race -v .

linux:
name: Test Go1.20 for Linux
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/go121.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .
run: go test -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/igoptest
run: go run ./cmd/igoptest

- name: Go Test race
run: CGO_ENABLED=1 GOARCH=amd64 go test -race -v .

linux:
name: Test Go1.21 for Linux
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/go122.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
run: go install -v ./cmd/igop

- name: Go Test
run: GOARCH=amd64 go test -race -v .
run: go test -v .

- name: Test $GOROOT/test
run: GOARCH=amd64 go run ./cmd/igoptest
run: go run ./cmd/igoptest

- name: Go Test race
run: CGO_ENABLED=1 GOARCH=amd64 go test -race -v .

linux:
name: Test Go1.22 for Linux
Expand Down

0 comments on commit 860ed0d

Please sign in to comment.