From 4d5989239c159139dd46355aee705014e0264149 Mon Sep 17 00:00:00 2001 From: Futa HIRAKOBA Date: Fri, 5 Nov 2021 15:19:38 +0900 Subject: [PATCH] feat: support 64-bit ARM architecture on macOS --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- .goreleaser.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa99c387..d169a418 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: needs: [static-analysis, go-mod-tidy, test] # Run the build on macOS, because only the macOS version is built with CGO enabled. # See https://github.com/golang/go/issues/12524 - runs-on: macos-latest + runs-on: macos-11 steps: - uses: actions/checkout@v2 - uses: ./.github/actions/setup-go diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 205fade7..7ac875a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: release: # Run the build on macOS, because only the macOS version is built with CGO enabled. # See https://github.com/golang/go/issues/12524 - runs-on: macos-latest + runs-on: macos-11 steps: - uses: actions/checkout@v2 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 44a357f3..e44dbb2b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,7 @@ builds: - darwin goarch: - amd64 + - arm64 ldflags: - "-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}}\"" archives: