Skip to content

Commit

Permalink
GitHub Actions: Remove multi-config options from macOS
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mcprat committed Aug 25, 2024
1 parent dcefb83 commit 27698d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27698d1

Please sign in to comment.