From e3af35e6ff78449f319f87aef34a4f8df14e9522 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 2 Jul 2024 10:44:28 +0900 Subject: [PATCH] .github/workflows: build with GOARCH=amd64 explicitly on macOS Now a macOS server is arm64, not amd64. See https://github.com/actions/runner-images/issues/9741 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14310e552..a356152c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -98,7 +98,7 @@ jobs: - name: go build (macOS) if: runner.os == 'macOS' run: | - env CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -v ./... + env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v ./... env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o flappy_amd64 -v ./examples/flappy env CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o flappy_arm64 -v ./examples/flappy lipo -create flappy_amd64 flappy_arm64 -output flappy