Skip to content

Commit eb9542e

Browse files
committed
Update MacOS runner used for cross compilation build in Github Actions after deprecating macos-11
1 parent e05c09e commit eb9542e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/cross-compile.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
while git pull --rebase && ! git push; do sleep 5; done
135135
136136
macos:
137-
runs-on: macos-11
137+
runs-on: macos-latest
138138
needs: create-branch
139139
strategy:
140140
matrix:
@@ -160,15 +160,14 @@ jobs:
160160
distribution: temurin
161161

162162
- name: Get oldest supported SDK
163-
if: ${{ matrix.sdk-version == 'MacOSX10.9.sdk' }}
164163
run: |
165-
wget -qO- https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.9.sdk.tar.xz \
166-
| tar -xjv -C $XCODE_12_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs
164+
wget -qO- https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/${{ matrix.sdk-version }}.tar.xz \
165+
| tar -xjv -C $XCODE_16_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs
167166
168167
- name: Set SDK version
169168
run: |
170169
export MACOSX_DEPLOYMENT_TARGET=${{ matrix.macos-deployment-target }}
171-
export SDKROOT=$XCODE_12_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/${{ matrix.sdk-version }}
170+
export SDKROOT=$XCODE_16_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/${{ matrix.sdk-version }}
172171
export CMAKE_OSX_SYSROOT=$SDKROOT
173172
- name: Build with Maven
174173
run: mvn -B clean install -P ${{ matrix.profile }},update-resources-precompiled

0 commit comments

Comments
 (0)