Skip to content

Commit

Permalink
CI: Force use of Xcode 15.2 to fix runtime crashes on older macOS
Browse files Browse the repository at this point in the history
Xcode 15.0.1 had a bug which lead to binaries crashing on macOS 12
or older when compiled with weak definitions (FB13097713).
  • Loading branch information
PatTheMav authored and RytoEX committed Mar 14, 2024
1 parent a84772c commit dc4944c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ jobs:
- name: Setup Environment
id: setup
run: |
print '::group::Enable Xcode 15.2'
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
print '::endgroup::'
local -a to_remove=()
for formula (llvm gcc postgresql openjdk sox libsndfile flac libvorbis opusfile \
Expand Down Expand Up @@ -238,6 +242,10 @@ jobs:
run: |
: Setup Environment
print '::group::Enable Xcode 15.2'
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
print '::endgroup::'
to_remove=()
for formula (llvm gcc) {
Expand Down Expand Up @@ -336,6 +344,10 @@ jobs:
id: setup
run: |
: Setup Environment
print '::group::Enable Xcode 15.2'
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
print '::endgroup::'
local -a to_remove=()
for formula (llvm gcc) {
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ jobs:
- name: Setup Environment
id: setup
run: |
: Setup Environment
print '::group::Enable Xcode 15.2'
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
print '::endgroup::'
local -a to_remove=()
for formula (llvm gcc postgresql openjdk sox libsndfile flac libvorbis opusfile \
Expand Down Expand Up @@ -182,6 +187,9 @@ jobs:
id: setup
run: |
: Setup Environment
print '::group::Enable Xcode 15.2'
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
print '::endgroup::'
to_remove=()
Expand Down Expand Up @@ -298,6 +306,10 @@ jobs:
id: setup
run: |
: Setup Environment
print '::group::Enable Xcode 15.2'
sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
print '::endgroup::'
local -a to_remove=()
for formula (llvm gcc) {
Expand Down

0 comments on commit dc4944c

Please sign in to comment.