-
Notifications
You must be signed in to change notification settings - Fork 339
111 lines (108 loc) · 3.25 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
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@v3
- 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@v3
- 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@v3
- 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-all-disabled:
name: "windows, all features disabled"
runs-on: "windows-2019"
steps:
- uses: actions/checkout@v3
- name: Configure
run: |
cmake -G "Visual Studio 16 2019" -DENABLE_JOURNALD_TARGETS=OFF -DENABLE_NETWORK_TARGETS=OFF -DENABLE_SOCKET_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@v3
- uses: actions/setup-ruby@v1.1.3
- name: Install Gems
run: |
gem install bundler
bundle install
- 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