From 0689556e5788eb024ce91160e200ead7dc7e4073 Mon Sep 17 00:00:00 2001 From: Chin-Chang Yang <2770271+ChinChangYang@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:02:22 +0800 Subject: [PATCH] Fix Xcode setup for cmake-macos This commit modifies the setup command to be more flexible by using the `-p` flag to retrieve the current Xcode path and the `-s` flag to set it accordingly. --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cbd06edb..c22a0a3ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,7 +57,8 @@ jobs: - name: Setup Xcode run: | - xcode-select /Applications/Xcode_15.0.1.app/Contents/Developer + xcode-select -p + xcode-select -s /Applications/Xcode_15.0.1.app/Contents/Developer - name: Run cmake ninja run: |