Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCong <congusbongus@gmail.com>2021-11-29 02:16:54 +0300
committerGitHub <noreply@github.com>2021-11-29 02:16:54 +0300
commit9f866c1ec09e62aa4df50d7209556ed705a4dd90 (patch)
tree3af33fb8df8f0c620c1cb0eb002af506a5699a88
parent98495119dc3ee6065e2601b0c266a5d464a9587d (diff)
Add windows to build matrix (#76)HEADmaster
-rw-r--r--.github/workflows/cmake.yml21
1 files changed, 15 insertions, 6 deletions
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}}