From 1dd61322c9b86d8a0c3707539c29442381b9e189 Mon Sep 17 00:00:00 2001 From: Vova Lando Date: Mon, 11 Dec 2023 12:48:45 +0200 Subject: [PATCH] added separate workflow for macOs --- .../workflows/pilkki-software-multiplatform.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/pilkki-software-multiplatform.yml b/.github/workflows/pilkki-software-multiplatform.yml index e12637b..4916922 100644 --- a/.github/workflows/pilkki-software-multiplatform.yml +++ b/.github/workflows/pilkki-software-multiplatform.yml @@ -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 }}