mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
06392e7ec1
commit
a76527772e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue