From 27698d158f57c8ee8004ecb957f32d421800c1fb Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Sun, 25 Aug 2024 16:27:58 -0400 Subject: [PATCH] GitHub Actions: Remove multi-config options from macOS The "--config" option for mutli-config generators does not apply to the "Xcode" generator of CMake. Instead, specify the build config with CMAKE_BUILD_TYPE and set the subdirectory explicitly. Signed-off-by: Michael Pratt --- .github/workflows/macos.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f4f26abf69..6c481170df 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,12 +21,13 @@ jobs: env: MACOSX_DEPLOYMENT_TARGET: 10.15 run: | - cmake -Bbuild -GXcode '-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64' - cmake --build build --config Release + cmake -Bbuild/Release -GXcode -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_OSX_ARCHITECTURES=arm64';'x86_64 + cmake --build build/Release - name: Test ninja - run: ctest -C Release -vv - working-directory: build + run: ctest -vv + working-directory: build/Release - name: Create ninja archive shell: bash