From 91b9ef73e426077c86938397c71eb3be31e686ad Mon Sep 17 00:00:00 2001 From: JustAnotherID Date: Sat, 27 Jan 2024 14:51:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E9=99=8D=E4=BD=8E=20cgo=20=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=97=B6=E7=9A=84=20macos=20=E6=9C=80=E4=BD=8E?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E8=A7=A3=E5=86=B3=E4=BD=8E=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20macos=20=E4=B8=AD=E6=97=A0=E6=B3=95=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 85b1bc4..6f88d88 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -351,7 +351,8 @@ jobs: GOARCH: ${{ matrix.goarch }} GO111MODULE: on CGO_ENABLED: 1 - CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2 + CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2 -mmacosx-version-min=10.12 + CGO_CFLAGS: -mmacosx-version-min=10.12 CUR_TIME: ${{ steps.current-time.outputs.formattedTime }} working-directory: ./sealdice-core run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION=$CUR_TIME($PROJECT_VERSION_S)" .