File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 44name : Release
55on :
66 push :
7+ branches :
8+ - ' master'
79 tags :
810 - ' v*'
9- - ' test-action-release-*'
11+ pull_request :
12+ branches :
13+ - ' master'
1014env :
1115 GO111MODULE : on
1216jobs :
1519 runs-on : macos-12
1620 timeout-minutes : 20
1721 steps :
22+ - name : " Switch Xcode version to enable macOS 13 SDK"
23+ # Xcode 14.1 added support for macOS 13 SDK.
24+ # The default version is still 14.0.1, as of November 2022.
25+ # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
26+ run : |
27+ sudo xcode-select --switch /Applications/Xcode_14.1.app
28+ xcrun --show-sdk-version
1829 - uses : actions/setup-go@v3
1930 with :
2031 go-version : 1.19.x
8192 The sha256sum of the SHA256SUMS file itself is \`${shasha}\` .
8293 EOF
8394 - name : " Create release"
95+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
8496 env :
8597 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8698 run : |
Original file line number Diff line number Diff line change 1515
1616GO_BUILDTAGS ?=
1717ifeq ($(GOOS ) ,darwin)
18- MACOS_VERSION =$(shell sw_vers -productVersion | cut -d . -f 1)
19- ifeq ($(shell test $(MACOS_VERSION ) -lt 13; echo $$? ) ,0)
20- # The "vz" mode needs macOS 13 or later
18+ MACOS_SDK_VERSION =$(shell xcrun --show-sdk-version | cut -d . -f 1)
19+ ifeq ($(shell test $(MACOS_SDK_VERSION ) -lt 13; echo $$? ) ,0)
20+ # The "vz" mode needs macOS 13 SDK or later
2121GO_BUILDTAGS += no_vz
2222endif
2323endif
You can’t perform that action at this time.
0 commit comments