Skip to content

Commit

Permalink
github/workflows: use xcode 13.1 if image defaults to xcode 13.0
Browse files Browse the repository at this point in the history
I find it both hilarious and sad that Github decided that defaulting
to XCode 13.0 was a good idea... At least they added 13.1 quickly.

Ref actions/runner-images#4180
Ref actions/runner-images#4300
  • Loading branch information
jeeb committed Oct 21, 2021
1 parent 06392e7 commit a765277
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Override Xcode 13.0 if it's the default toolchain
run: |
XCODE_PATH="$(xcode-select -p)"
case "${XCODE_PATH}" in
*Xcode_13.0*)
sudo xcode-select -s "/Applications/Xcode_13.1.app"
echo "Updated Xcode path ${XCODE_PATH} -> $(xcode-select -p)"
;;
esac
- name: Install dependencies
run: |
brew update
Expand Down

0 comments on commit a765277

Please sign in to comment.