Skip to content

Commit

Permalink
github/workflows: use xcode 13.1 if xcode 13.0 is set
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 b490e02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Override Xcode 13.0 if it's around
run: |
XCODE_PATH="$(xcode-select -p)"
if [[ "${XCODE_PATH}" = "/Applications/Xcode_13.0.app" ]]; then
sudo xcode-select -s "/Applications/Xcode_13.1.app"
echo "Updated Xcode path ${XCODE_PATH} -> $(xcode-select -p)"
fi
- name: Install dependencies
run: |
brew update
Expand Down

0 comments on commit b490e02

Please sign in to comment.