From b490e02b71f6da29a0f9f37a682f46ee5eddb42c 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: [PATCH] github/workflows: use xcode 13.1 if xcode 13.0 is set 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aab12082c30a5..75fa4ccf919aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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