-
-
Notifications
You must be signed in to change notification settings - Fork 995
233 lines (196 loc) · 6.48 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
name: Windows
on:
push:
branches: [ RC_1_2 RC_2_0 master ]
pull_request:
defaults:
run:
shell: cmd
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
tests:
name: Test
runs-on: windows-latest
continue-on-error: true
strategy:
matrix:
include:
- config: address-model=32 crypto=built-in
- config: address-model=64
- config: release
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: install openssl (64 bit)
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
retry_wait_seconds: 4
max_attempts: 3
command: choco install openssl --limitoutput --no-progress
- name: install boost
run: |
git clone --depth=1 --recurse-submodules -j10 --branch=boost-1.78.0 https://github.com/boostorg/boost.git
cd boost
bootstrap.bat
- name: boost headers
run: |
cd boost
.\b2 headers
- name: tests (deterministic)
run: |
set BOOST_ROOT=%CD%\boost
set PATH=%BOOST_ROOT%;%PATH%
set PYTHON_INTERPRETER=python
cd test
b2 -l400 warnings=all warnings-as-errors=on ${{ matrix.config }} deterministic-tests
- name: tests (flaky)
run: |
set BOOST_ROOT=%CD%\boost
set PATH=%BOOST_ROOT%;%PATH%
set PYTHON_INTERPRETER=python
cd test
set c=3
:retry
if %c%==0 exit /B 1
set /a c = %c% -1
b2 -l400 warnings=all warnings-as-errors=on ${{ matrix.config }}
if %errorlevel%==0 exit /B 0
if %c% gtr 0 goto retry
exit /B 1
simulations:
name: Simulations
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: install boost
run: |
git clone --depth=1 --recurse-submodules -j10 --branch=boost-1.78.0 https://github.com/boostorg/boost.git
cd boost
bootstrap.bat
- name: boost headers
run: |
cd boost
.\b2 headers
- shell: pwsh
run: |
echo "BOOST_ROOT=$(pwd)/boost" >> $env:GITHUB_ENV
echo "$(pwd)/boost" >> $env:GITHUB_PATH
# debug iterators are turned off here because msvc has issues with noexcept
# specifiers when debug iterators are enabled. Specifically, constructors that
# allocate memory are still marked as noexcept. That results in program
# termination
# the IOCP backend in asio appears to have an issue where it hangs under
# certain unexpected terminations (through exceptions)
- name: build sims
run: |
echo %BOOST_ROOT%
echo %PATH%
cd simulation
b2 --hash release address-model=64 link=static debug-iterators=off invariant-checks=on define=BOOST_ASIO_DISABLE_IOCP asserts=on testing.execute=off
- name: run sims
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 120
command: |
cd simulation
b2 --hash -l700 release address-model=64 link=static debug-iterators=off invariant-checks=on define=BOOST_ASIO_DISABLE_IOCP asserts=on
build:
name: Build
runs-on: windows-2019
continue-on-error: true
strategy:
matrix:
include:
- config: asio-debugging=on picker-debugging=on windows-version=vista
- config: windows-api=store windows-version=win10
- config: deprecated-functions=off
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: install boost
run: |
git clone --depth=1 --recurse-submodules -j10 --branch=boost-1.78.0 https://github.com/boostorg/boost.git
cd boost
bootstrap.bat
- name: install openssl (64 bit)
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
retry_wait_seconds: 4
max_attempts: 3
command: choco install openssl --limitoutput --no-progress
- name: boost headers
run: |
cd boost
.\b2 headers
- name: build library
run: |
set BOOST_ROOT=%CD%\boost
set PATH=%BOOST_ROOT%;%PATH%
b2 ${{ matrix.config }} cxxstd=14 address-model=64 warnings=all warnings-as-errors=on
- name: build examples
if: ${{ ! contains(matrix.config, 'windows-api=store') }}
run: |
set BOOST_ROOT=%CD%\boost
set PATH=%BOOST_ROOT%;%PATH%
cd examples
b2 ${{ matrix.config }} address-model=64 warnings=all warnings-as-errors=on
- name: build tools
if: ${{ ! contains(matrix.config, 'windows-api=store') }}
run: |
set BOOST_ROOT=%CD%\boost
set PATH=%BOOST_ROOT%;%PATH%
cd tools
b2 ${{ matrix.config }} address-model=64 warnings=all warnings-as-errors=on
mingw:
name: MingW
runs-on: windows-latest
continue-on-error: true
strategy:
matrix:
include:
- config: address-model=64
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: install openssl (64 bit)
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
retry_wait_seconds: 4
max_attempts: 3
command: choco install openssl --limitoutput --no-progress
- name: install boost
run: |
git clone --depth=1 --recurse-submodules -j10 --branch=boost-1.78.0 https://github.com/boostorg/boost.git
cd boost
bootstrap.bat
- name: boost headers
run: |
cd boost
.\b2 headers
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
static: 0
platform: x64
- name: tests (deterministic)
run: |
set BOOST_ROOT=%CD%\boost
set PATH=%BOOST_ROOT%;%PATH%
set PYTHON_INTERPRETER=python
cd test
b2 toolset=gcc asserts=on release target-os=windows -l400 warnings=all warnings-as-errors=on ${{ matrix.config }} cxxflags=-Wno-error=array-bounds cxxflags=-Wno-error=stringop-overflow deterministic-tests testing.execute=off