Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Commit 6c335e5

Browse files
authored
Merge pull request #263 from cybozu/change-macos-build-runner
Build for macOS with ubuntu runner, support 64-bit ARM architecture on Windows and Linux
2 parents b3e2fcf + 2722ec4 commit 6c335e5

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

.github/workflows/ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ jobs:
4747
run: npx --package renovate renovate-config-validator
4848
package:
4949
needs: [static-analysis, go-mod-tidy, test]
50-
# Run the build on macOS, because only the macOS version is built with CGO enabled.
51-
# See https://github.com/golang/go/issues/12524
52-
runs-on: macos-13
50+
runs-on: ubuntu-latest
5351
steps:
5452
- uses: actions/checkout@v4
5553
- uses: ./.github/actions/setup-go

.github/workflows/release.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77

88
jobs:
99
release:
10-
# Run the build on macOS, because only the macOS version is built with CGO enabled.
11-
# See https://github.com/golang/go/issues/12524
12-
runs-on: macos-13
10+
runs-on: ubuntu-latest
1311
steps:
1412
- uses: actions/checkout@v4
1513
with:

.goreleaser.yml

-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ builds:
99
goos:
1010
- linux
1111
- windows
12-
goarch:
13-
- amd64
14-
ldflags:
15-
- "-s -w -X \"github.com/cybozu/assam/cmd.version={{.Version}}\" -X \"github.com/cybozu/assam/cmd.commit={{.ShortCommit}}\" -X \"github.com/cybozu/assam/cmd.date={{.Date}}\""
16-
- id: assam-darwin
17-
env:
18-
- CGO_ENABLED=1
19-
goos:
2012
- darwin
2113
goarch:
2214
- amd64

0 commit comments

Comments
 (0)