Skip to content

Commit dc4944c

Browse files
PatTheMavRytoEX
authored andcommitted
CI: Force use of Xcode 15.2 to fix runtime crashes on older macOS
Xcode 15.0.1 had a bug which lead to binaries crashing on macOS 12 or older when compiled with weak definitions (FB13097713).
1 parent a84772c commit dc4944c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
- name: Setup Environment
7979
id: setup
8080
run: |
81+
print '::group::Enable Xcode 15.2'
82+
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
83+
print '::endgroup::'
84+
8185
local -a to_remove=()
8286
8387
for formula (llvm gcc postgresql openjdk sox libsndfile flac libvorbis opusfile \
@@ -238,6 +242,10 @@ jobs:
238242
run: |
239243
: Setup Environment
240244
245+
print '::group::Enable Xcode 15.2'
246+
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
247+
print '::endgroup::'
248+
241249
to_remove=()
242250
243251
for formula (llvm gcc) {
@@ -336,6 +344,10 @@ jobs:
336344
id: setup
337345
run: |
338346
: Setup Environment
347+
print '::group::Enable Xcode 15.2'
348+
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
349+
print '::endgroup::'
350+
339351
local -a to_remove=()
340352
341353
for formula (llvm gcc) {

.github/workflows/scheduled.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ jobs:
9898
- name: Setup Environment
9999
id: setup
100100
run: |
101+
: Setup Environment
102+
print '::group::Enable Xcode 15.2'
103+
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
104+
print '::endgroup::'
105+
101106
local -a to_remove=()
102107
103108
for formula (llvm gcc postgresql openjdk sox libsndfile flac libvorbis opusfile \
@@ -182,6 +187,9 @@ jobs:
182187
id: setup
183188
run: |
184189
: Setup Environment
190+
print '::group::Enable Xcode 15.2'
191+
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
192+
print '::endgroup::'
185193
186194
to_remove=()
187195
@@ -298,6 +306,10 @@ jobs:
298306
id: setup
299307
run: |
300308
: Setup Environment
309+
print '::group::Enable Xcode 15.2'
310+
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
311+
print '::endgroup::'
312+
301313
local -a to_remove=()
302314
303315
for formula (llvm gcc) {

0 commit comments

Comments
 (0)