Skip to content

Commit

Permalink
fix(ci): 降低 cgo 编译时的 macos 最低版本,解决低版本 macos 中无法运行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID committed Jan 27, 2024
1 parent 52a1845 commit 91b9ef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)" .
Expand Down

0 comments on commit 91b9ef7

Please sign in to comment.