13
13
- ' master'
14
14
env :
15
15
GO111MODULE : on
16
- MACOS_LATEST_PRODUCT_VERSION : 15
17
16
permissions :
18
17
contents : read
19
18
20
19
jobs :
21
20
artifacts-darwin :
22
21
name : Artifacts Darwin
23
- runs-on : ${{ matrix.runner }}
24
- strategy :
25
- fail-fast : false
26
- matrix :
27
- # When you update this list, make sure to update MACOS_LATEST_PRODUCT_VERSION too
28
- runner : ["macos-13", "macos-14", "macos-15"]
22
+ # The latest release of macOS is used to enable new features.
23
+ # https://github.com/lima-vm/lima/issues/2767
24
+ #
25
+ # Apparently, a binary built on a newer version of macOS can still run on
26
+ # an older release of macOS without an error.
27
+ # This is quite different from Linux and glibc.
28
+ runs-on : macos-15
29
29
timeout-minutes : 20
30
30
steps :
31
31
- name : " Show xcode and SDK version"
@@ -41,23 +41,11 @@ jobs:
41
41
with :
42
42
go-version : 1.23.x
43
43
- name : Make darwin artifacts
44
- run : |
45
- make artifacts-darwin
46
- product_version="$(sw_vers --productVersion | cut -d. -f1)"
47
- # Rename lima-VERSION-Darwin-arm64.tar.gz to lima-VERSION-Darwin_macOS15-arm64.tar.gz
48
- for f in _artifacts/*; do
49
- dst=${f/Darwin/Darwin_macOS${product_version}}
50
- if [ ${product_version} = ${MACOS_LATEST_PRODUCT_VERSION} ]; then
51
- # For the latest macOS release, preserve lima-VERSION-Darwin-arm64.tar.gz
52
- cp -a "${f}" "${dst}"
53
- else
54
- mv "${f}" "${dst}"
55
- fi
56
- done
44
+ run : make artifacts-darwin
57
45
- name : " Upload artifacts"
58
46
uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
59
47
with :
60
- name : artifacts-darwin-${{ matrix.runner }}
48
+ name : artifacts-darwin
61
49
path : _artifacts/
62
50
release :
63
51
# An old release of Ubuntu is chosen for glibc compatibility
74
62
- uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
75
63
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
76
64
with :
77
- pattern : artifacts-darwin-*
78
- merge-multiple : true
65
+ name : artifacts-darwin
79
66
path : _artifacts/
80
67
- uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
81
68
with :
0 commit comments