-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.32 KB
/
windows.yaml
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
46
47
48
49
name: JCM CI (Windows)
on:
workflow_dispatch:
push:
paths-ignore:
- .github/workflows/macos.yaml
- .github/workflows/pages.yaml
- .github/workflows/ubuntu.yaml
- docs/**
branches:
- main
pull_request:
paths-ignore:
- .github/workflows/macos.yaml
- .github/workflows/pages.yaml
- .github/workflows/ubuntu.yaml
- docs/**
branches:
- main
defaults:
run:
shell: bash
jobs:
build-test-windows:
runs-on: windows-2022
strategy:
matrix:
generator: ["Ninja", "Visual Studio 17 2022"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install ninja-build
if: ${{ matrix.generator }} == "Ninja"
uses: seanmiddleditch/gha-setup-ninja@master
with:
version: 1.11.1
- name: Install Doxygen for tests
run: for i in 1 2 3; do choco install doxygen.install && break; done # multiple attempts
- name: Configure tests target
run: cmake -G "${{ matrix.generator }}" --preset tests-ninja
- name: Format test code to ignore formatting errors
run: >
clang-format --style=file -i
$(find tests -name "*.hpp" -o -name "*.cpp" -o -name "*.h" -o -name "*.c")
- name: Run all automated tests
run: ctest --preset test-to-fail