From 586435b945219c3c475fbc7621938dad76370e26 Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Wed, 3 Jul 2024 23:43:55 +1000 Subject: [PATCH] Select Xcode version --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1352344..154ef74 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,6 +36,14 @@ jobs: tar -xjf MacPorts-${version}.tar.bz2 mv MacPorts-${version} MacPorts rm MacPorts-${version}.tar.bz2 MacPorts-${version}.tar.bz2.sha256.sig + - name: Select Xcode version + run: | + case "`uname -r`" in + 22.*) sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer + ;; + 23.*) sudo xcode-select --switch /Applications/Xcode_15.3.app/Contents/Developer + ;; + esac - name: Configure MacPorts Base run: | set -eu