From a76527772eb52084c61241b89cfb42ce59f6f6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Thu, 21 Oct 2021 20:27:44 +0300 Subject: 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 --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3