Skip to content

Commit

Permalink
added separate workflow for macOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovke committed Dec 11, 2023
1 parent 8b6ba43 commit 1dd6132
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pilkki-software-multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,26 @@ jobs:
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ steps.strings.outputs.build-source-dir }}
if: matrix.os !== 'macos-latest'
- name: Configure CMake for macOS
# Specific settings for macOS, if needed
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_STANDARD=17 # Ensure C++17 standard
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-G Ninja
-S ${{ steps.strings.outputs.build-source-dir }}
if: matrix.os == 'macos-latest'

- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
if: matrix.os !== 'macos-latest'

- name: Build for macOS
run: ninja -C ${{ steps.strings.outputs.build-output-dir }}
if: matrix.os == 'macos-latest'

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
Expand Down

0 comments on commit 1dd6132

Please sign in to comment.