-
Notifications
You must be signed in to change notification settings - Fork 118
45 lines (36 loc) · 931 Bytes
/
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
40
41
42
43
44
45
name: Windows Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
mode: [ Debug, Release ]
arch: [ amd64, x86 ]
env:
CXX: cl.exe
CC: cl.exe
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Install ninja
run: choco install ninja
- name: Build
run: |
cmake -GNinja -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCISTA_FMT=OFF
cmake --build build --target cista-test cista-test-single-header
# ==== TESTS ====
- name: Run Tests
run: .\build\cista-test.exe
- name: Run Single Header Tests
run: .\build\cista-test-single-header.exe