Skip to content

Commit

Permalink
[ci] Add support for xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 24, 2024
1 parent 9e6de36 commit 2c10f04
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/mac-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: [push,pull_request]

jobs:
brew:
# Last X86 macos version supported by GH Actions
name: macOS (Release, Brew, Intel)
runs-on: macos-13

Expand All @@ -26,14 +27,18 @@ jobs:
brew-m1:
name: macOS (Release, Brew, AppleSilicon)
runs-on: macos-14
runs-on: macos-15

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '>=16'

- name: Dependencies
run: |
./ci/osx-brew.deps.sh
Expand All @@ -44,14 +49,18 @@ jobs:
brew-m1-dev:
name: macOS (Dev, Brew, AppleSilicon)
runs-on: macos-14
runs-on: macos-15

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '>=16'

- name: Dependencies
run: |
./ci/osx-brew.deps.sh
Expand All @@ -62,13 +71,17 @@ jobs:
m1-package:
name: macOS (AppleSilicon Release)
runs-on: macos-14
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '>=16'

- run: |
source ci/osx-package.deps.sh
env:
Expand Down
14 changes: 13 additions & 1 deletion ci/osx-package.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ export SCORE_DIR="$PWD"
export SDK_DIR="$PWD/SDK"
export PATH=/usr/local/bin:/opt/homebrew/bin:$PATH

if [[ -d /Applications/Xcode_15.4.app ]]; then
if [[ -d /Applications/Xcode_16.2.app ]]; then
export XCODE_ROOT=/Applications/Xcode_16.2.app
sudo xcode-select -s "$XCODE_ROOT"
elif [[ -d /Applications/Xcode_16.1.app ]]; then
export XCODE_ROOT=/Applications/Xcode_16.1.app
sudo xcode-select -s "$XCODE_ROOT"
elif [[ -d /Applications/Xcode_16.app ]]; then
export XCODE_ROOT=/Applications/Xcode_16.app
sudo xcode-select -s "$XCODE_ROOT"
elif [[ -d /Applications/Xcode_16.0.app ]]; then
export XCODE_ROOT=/Applications/Xcode_16.0.app
sudo xcode-select -s "$XCODE_ROOT"
elif [[ -d /Applications/Xcode_15.4.app ]]; then
export XCODE_ROOT=/Applications/Xcode_15.4.app
sudo xcode-select -s "$XCODE_ROOT"
elif [[ -d /Applications/Xcode_15.3.app ]]; then
Expand Down

0 comments on commit 2c10f04

Please sign in to comment.