Debian Codegraph @

podofo/.github/workflows/build-win.yml

raw
1 name: build-win
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8 workflow_dispatch:
9 inputs:
10 ctestArgs:
11 description: 'CTest arguments'
12
13 env:
14 BUILD_TYPE: Release
15
16 jobs:
17 build:
18 runs-on: windows-2025
19
20 steps:
21 - uses: actions/checkout@v6
22 with:
23 submodules: true
24
25 - name: Configure CMake
26 working-directory: .\playground
27 run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -A x64 -DARCH=Win64
28
29 # NOTE: The cmake build is forced to be single
30 # configuration (either Debug or Release) but it
31 # must be specified when running tests on Windows
32 # because of MSVC solution oddities
33
34 - name: Build
35 working-directory: .\playground
36 run: cmake --build build --config ${{env.BUILD_TYPE}}
37
38 - name: Test
39 working-directory: .\playground
40 run: ctest --test-dir build ${{ github.event.inputs.ctestArgs }}