diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 100c6c8..7bd87ac 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -12,12 +12,22 @@ jobs: strategy: matrix: build_type: [Release, Debug] - os: [macos-latest, ubuntu-latest] - CC: [clang, gcc] + os: [macos-latest, ubuntu-latest, windows-latest] + CC: [clang, gcc, cl] gcc_version: [latest, 11] exclude: + # macos+clang only - os: macos-latest CC: gcc + - os: macos-latest + CC: cl + # cl for windows only + - os: ubuntu-latest + CC: cl + - os: windows-latest + CC: gcc + - os: windows-latest + CC: clang - CC: clang gcc_version: 11 @@ -39,12 +49,11 @@ jobs: - name: Test working-directory: ${{github.workspace}}/build - run: ctest -C ${{env.BUILD_TYPE}} + run: ctest -C ${{matrix.build_type}} - name: Build (samples) env: CC: ${{ matrix.CC }} run: | - rm -rf ${{github.workspace}}/build - cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON samples - cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} + cmake -B ${{github.workspace}}/build_samples -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON samples + cmake --build ${{github.workspace}}/build_samples --config ${{matrix.build_type}}