Skip to content

Commit

Permalink
Add windows to build matrix (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong authored Nov 28, 2021
1 parent 9849511 commit 9f866c1
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}}

0 comments on commit 9f866c1

Please sign in to comment.