diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index a92337a1ac..73c1b0b382 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -24,14 +24,14 @@ jobs: name: "Ubuntu Latest GCC", artifact: "Linux.tar.gz", os: ubuntu-latest, cc: "gcc", cxx: "g++", - cmake_flags: "-G Ninja", + cmake_flags: "-G Ninja -DENABLE_TESTING=ON ", cpack: "", } - { name: "macOS Latest Clang", artifact: "macOS.dmg", os: macos-latest, cc: "clang", cxx: "clang++", - cmake_flags: "-G Ninja", + cmake_flags: "-G Ninja -DENABLE_TESTING=ON ", cpack_flags: "-G DragNDrop", } - { @@ -120,7 +120,7 @@ jobs: run: | mkdir "${{ runner.workspace }}/build" cd "${{ runner.workspace }}/build" - CC=${{matrix.config.cc}} CXX=${{matrix.config.cxx}} cmake $GITHUB_WORKSPACE -DENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${{matrix.config.cmake_flags}} + CC=${{matrix.config.cc}} CXX=${{matrix.config.cxx}} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${{matrix.config.cmake_flags}} shell: bash - name: Build @@ -155,6 +155,7 @@ jobs: working-directory: ${{ runner.workspace }} - name: Run tests + if: runner.os != 'Windows' shell: cmake -P {0} run: | include(ProcessorCount)