Skip to content

Commit 0bd21da

Browse files
test-windows.yml: Add more PowerShell logic to stop explicitly on errors
1 parent 5fd9720 commit 0bd21da

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,41 @@ jobs:
5959
vcpkgJsonGlob: .github/workflows/vcpkg.json
6060

6161
- name: setup faber
62+
shell: pwsh
6263
run: |
64+
# Source - https://stackoverflow.com/a/9949105
65+
# Posted by goric, modified by community. See post 'Timeline' for change history
66+
# Retrieved 2026-07-12, License - CC BY-SA 4.0
67+
$ErrorActionPreference = "Stop"
68+
Set-StrictMode -Version Latest
69+
$PSNativeCommandUseErrorActionPreference = $true # might be true by default
70+
6371
python -m pip install --upgrade pip
6472
python -m pip install setuptools faber numpy
6573
faber --info=tools cxx
6674
6775
- name: build
6876
shell: pwsh
6977
run: |
78+
# Source - https://stackoverflow.com/a/9949105
79+
# Posted by goric, modified by community. See post 'Timeline' for change history
80+
# Retrieved 2026-07-12, License - CC BY-SA 4.0
81+
$ErrorActionPreference = "Stop"
82+
Set-StrictMode -Version Latest
83+
$PSNativeCommandUseErrorActionPreference = $true # might be true by default
84+
7085
faber --builddir=build cxx.name=msvc --log=commands --log=output --with-boost-include="${{ github.workspace }}/vcpkgInstalled/x64-windows/include" -j4
7186
7287
- name: test
7388
shell: pwsh
7489
run: |
90+
# Source - https://stackoverflow.com/a/9949105
91+
# Posted by goric, modified by community. See post 'Timeline' for change history
92+
# Retrieved 2026-07-12, License - CC BY-SA 4.0
93+
$ErrorActionPreference = "Stop"
94+
Set-StrictMode -Version Latest
95+
$PSNativeCommandUseErrorActionPreference = $true # might be true by default
96+
7597
faber --builddir=build cxx.name=msvc --with-boost-include="${{ github.workspace }}/vcpkgInstalled/x64-windows/include" -j4 test.report
7698
7799
- name: Save vcpkg cache

0 commit comments

Comments
 (0)