diff options
author | Jan Ekström <jeebjp@gmail.com> | 2021-10-21 20:27:44 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-10-21 21:29:08 +0300 |
commit | a76527772eb52084c61241b89cfb42ce59f6f6a4 (patch) | |
tree | 4bac01eebf7c738e4df462b6594c5ed751026100 | |
parent | 06392e7ec12c35961a3e09115ec881d2a19407ad (diff) | |
download | mpv-a76527772eb52084c61241b89cfb42ce59f6f6a4.tar.bz2 mpv-a76527772eb52084c61241b89cfb42ce59f6f6a4.tar.xz |
github/workflows: use xcode 13.1 if image defaults to xcode 13.0
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/virtual-environments#4180
Ref actions/virtual-environments#4300
-rw-r--r-- | .github/workflows/build.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aab12082c3..d6c18693f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 |