Skip to content

Commit

Permalink
Updating version of Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Cunha committed Nov 14, 2024
1 parent 304fe79 commit 2ced433
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,15 @@ jobs:
run: bundle exec pod install
working-directory: Example

- name: Select Xcode 16
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Select Xcode 16 if available, otherwise use default
run: |
if [ -d "/Applications/Xcode_16.app" ]; then
sudo xcode-select --switch /Applications/Xcode_16.app
else
ls /Applications | grep Xcode
echo "Xcode 16 not found, using default Xcode version"
sudo xcode-select --switch /Applications/Xcode.app
fi
- name: Install clang-format
run: brew install clang-format
Expand Down Expand Up @@ -124,8 +131,15 @@ jobs:
run: bundle exec pod install
working-directory: Example

- name: Select Xcode 16
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Select Xcode 16 if available, otherwise use default
run: |
if [ -d "/Applications/Xcode_16.app" ]; then
sudo xcode-select --switch /Applications/Xcode_16.app
else
ls /Applications | grep Xcode
echo "Xcode 16 not found, using default Xcode version"
sudo xcode-select --switch /Applications/Xcode.app
fi
- name: Analyze
run: ./scripts/ci ${{ matrix.schemes }} analysis
Expand Down

0 comments on commit 2ced433

Please sign in to comment.