21
21
CI_FAILFAST_TEST_LEAVE_DANGLING : 1 # GHA does not care about dangling processes and setting this variable avoids killing the CI script itself on error
22
22
MAKEJOBS : ' -j10'
23
23
24
+ defaults :
25
+ run :
26
+ # Enforce fail-fast behavior for all platforms.
27
+ # See: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
28
+ shell : bash
29
+
24
30
jobs :
25
31
test-each-commit :
26
32
name : ' test each commit'
@@ -185,6 +191,7 @@ jobs:
185
191
arch : x64
186
192
187
193
- name : Get tool information
194
+ shell : pwsh
188
195
run : |
189
196
cmake -version | Tee-Object -FilePath "cmake_version"
190
197
Write-Output "---"
@@ -194,6 +201,7 @@ jobs:
194
201
Write-Host "PowerShell version $($PSVersionTable.PSVersion.ToString())"
195
202
196
203
- name : Using vcpkg with MSBuild
204
+ shell : pwsh
197
205
run : |
198
206
Set-Location "$env:VCPKG_INSTALLATION_ROOT"
199
207
Add-Content -Path "triplets\x64-windows.cmake" -Value "set(VCPKG_BUILD_TYPE release)"
@@ -213,8 +221,8 @@ jobs:
213
221
key : ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
214
222
215
223
- name : Generate build system
216
- run : |
217
- cmake -B build --preset vs2022-static -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" ${{ matrix.generate-options }}
224
+ shell : pwsh
225
+ run : cmake -B build --preset vs2022-static -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" ${{ matrix.generate-options }}
218
226
219
227
- name : Save vcpkg binary cache
220
228
uses : actions/cache/save@v4
@@ -224,15 +232,15 @@ jobs:
224
232
key : ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
225
233
226
234
- name : Build
235
+ shell : pwsh
227
236
working-directory : build
228
- run : |
229
- cmake --build . -j $env:NUMBER_OF_PROCESSORS --config Release
237
+ run : cmake --build . -j $env:NUMBER_OF_PROCESSORS --config Release
230
238
231
239
- name : Run test suite
232
240
if : matrix.job-type == 'standard'
241
+ shell : pwsh
233
242
working-directory : build
234
- run : |
235
- ctest --output-on-failure --stop-on-failure -j $env:NUMBER_OF_PROCESSORS -C Release
243
+ run : ctest --output-on-failure --stop-on-failure -j $env:NUMBER_OF_PROCESSORS -C Release
236
244
237
245
- name : Run functional tests
238
246
if : matrix.job-type == 'standard'
@@ -249,9 +257,9 @@ jobs:
249
257
- name : Clone corpora
250
258
if : matrix.job-type == 'fuzz'
251
259
run : |
252
- git clone --depth=1 https://github.com/bitcoin-core/qa-assets "$env: RUNNER_TEMP\qa-assets"
253
- Set-Location "$env: RUNNER_TEMP\qa-assets"
254
- Write-Host "Using qa-assets repo from commit ..."
260
+ git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${ RUNNER_TEMP} \qa-assets"
261
+ cd "${ RUNNER_TEMP} \qa-assets"
262
+ echo "Using qa-assets repo from commit ..."
255
263
git log -1
256
264
257
265
- name : Run fuzz tests
@@ -260,8 +268,7 @@ jobs:
260
268
env :
261
269
BITCOINFUZZ : ' ${{ github.workspace }}\build\bin\Release\fuzz.exe'
262
270
shell : cmd
263
- run : |
264
- py -3 test\fuzz\test_runner.py --par %NUMBER_OF_PROCESSORS% --loglevel DEBUG %RUNNER_TEMP%\qa-assets\fuzz_corpora
271
+ run : py -3 test\fuzz\test_runner.py --par %NUMBER_OF_PROCESSORS% --loglevel DEBUG %RUNNER_TEMP%\qa-assets\fuzz_corpora
265
272
266
273
asan-lsan-ubsan-integer-no-depends-usdt :
267
274
name : ' ASan + LSan + UBSan + integer, no depends, USDT'
0 commit comments