From e876f693021a9ec39d7ba5c763392f4d96fb8007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 3 Apr 2023 14:32:22 +0200 Subject: [PATCH] CI: Fix macOS build by working around bogus SDK detection For whatever reason CMake seems to infer "12.6" as SDK version, because the GitHub Action macOS runner is based on macOS 12.6. But that number doesn't match the SDK version, which should be 13.1 here. This seems to be a long running issue with GitHub Actions' macOS runner: https://github.com/actions/runner-images/issues/2211 Though I can't tell if it's a CMake bug or a GitHub Actions image setup issue. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 759970945..dee104d79 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,6 +66,6 @@ jobs: with: fetch-depth: 0 # Shallow clones speed things up - name: cmake configure - run: cmake -S ./Projects -B ./Build + run: cmake -S ./Projects -DCMAKE_OSX_DEPLOYMENT_TARGET="13.1" -B ./Build - name: compile with cmake run: cmake --build ./Build