-
Notifications
You must be signed in to change notification settings - Fork 341
129 lines (126 loc) · 4.19 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: "Windows"
on:
push:
pull_request:
branches:
- latest
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
windows-debug:
name: "windows, debug"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Debug .
- name: Build
run: |
cmake --build . --config Debug
- name: Test
run: |
cmake --build . --config Debug --target check
- name: Thread Safety Tests
run: |
cmake --build . --config Debug --target check-thread-safety
- name: Run Examples
run: |
cmake --build . --config Debug --target examples
windows-release:
name: "windows, release"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release .
- name: Build
run: |
cmake --build . --config Release
- name: Test
run: |
cmake --build . --config Release --target check
- name: Thread Safety Tests
run: |
cmake --build . --config Release --target check-thread-safety
- name: Run Examples
run: |
cmake --build . --config Release --target examples
windows-release-static:
name: "windows, release, static library"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .
- name: Build
run: |
cmake --build . --config Release
- name: Test
run: |
cmake --build . --config Release --target check
- name: Thread Safety Tests
run: |
cmake --build . --config Release --target check-thread-safety
- name: Run Examples
run: |
cmake --build . --config Release --target examples
windows-release-single-file:
name: "windows, release, single file library"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .
- name: Build
run: |
cmake --build . --config Release
- name: Test
run: |
cmake --build . --config Release --target check-single-file
- name: Run Examples
run: |
cmake --build . --config Release --target examples-single-file
windows-all-disabled:
name: "windows, all features disabled"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DENABLE_JOURNALD_TARGETS=OFF -DENABLE_NETWORK_TARGETS=OFF -DENABLE_SOCKET_TARGETS=OFF -DENABLE_SQLITE3_TARGETS=OFF -DCMAKE_BUILD_TYPE=Release -DENABLE_THREAD_SAFETY=OFF .
- name: Build
run: |
cmake --build . --config Release
- name: Test
run: |
cmake --build . --config Release --target check
- name: Run Examples
run: |
cmake --build . --config Release --target examples
windows-cpp:
name: "windows, with c++"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0
with:
ruby-version: '3.2'
- name: Install Gems
run: |
gem install wrapture
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DENABLE_CPP=ON .
- name: Build
run: |
cmake --build . --config Release
- name: Test
run: |
cmake --build . --config Release --target check-cpp
- name: Run Example
run: |
cmake --build . --config Release --target run-example-cpp