-
Notifications
You must be signed in to change notification settings - Fork 376
39 lines (30 loc) · 1.02 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Windows Server 2022
on:
push:
branches: [ main, master, coro_http_server ]
pull_request:
branches: [ main, master, coro_http_server ]
jobs:
build_on_windows:
runs-on: windows-latest
strategy:
matrix:
mode: [ Debug ] #[ Release, Debug ]
arch: [ amd64, x86 ] #[ amd64,x86 ]
ssl: [ OFF ] #[ ON, OFF ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
with:
arch: ${{ matrix.arch }}
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCINATRA_ENABLE_SSL=${{matrix.ssl}} -G Ninja -B ${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.mode }}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.mode}} -j 1 -V