Debian Codegraph @

.github/workflows/windows.yml

raw
1 name: Windows
2
3 on:
4 push:
5 pull_request:
6 branches: [ master ]
7
8 jobs:
9 build:
10 runs-on: ${{ matrix.os }}
11 strategy:
12 matrix:
13 os: [windows-latest]
14 flags: ["/std:c++11", "/std:c++latest"]
15 optimize: [/O2]
16
17 env:
18 CXXFLAGS: ${{ matrix.flags }} ${{ matrix.optimize }}
19 CTEST_OUTPUT_ON_FAILURE: 1
20 CTEST_NO_TESTS_ACTION: error
21 CTEST_PARALLEL_LEVEL: 0
22 CMAKE_BUILD_PARALLEL_LEVEL: 4
23
24 steps:
25 - name: Checkout
26 uses: actions/checkout@v4
27
28 - name: CMake configure
29 run: cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -B build
30
31 - name: CMake build
32 run: cmake --build build --config Release
33
34 - name: CMake test
35 run: ctest --test-dir build -C Release