Skip to content

Commit

Permalink
CI Win: fail early if build fails
Browse files Browse the repository at this point in the history
Contrary to bash, GitHub CI pwsh doesn't stop on error but continues. This
can be misleading because `cmake --install` is normally run even though
`cmake --build` fails.
  • Loading branch information
MartinPulec committed Jan 31, 2025
1 parent a7be406 commit 9e14bd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ jobs:
Move-Item 'C:\glew-2.2.0' 'C:\glew'
- name: Build
run: |
$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $true
#Set-PSDebug -Trace 1
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Expand Down

0 comments on commit 9e14bd7

Please sign in to comment.