Skip to content

Commit

Permalink
Set $PSNativeCommandUseErrorActionPreference = $true in the install O…
Browse files Browse the repository at this point in the history
…Caml libraries step.

This ensures that the step fails if any opam commands fail.
  • Loading branch information
Apprentice-Alchemist committed Jan 1, 2025
1 parent 80bf392 commit f8a669a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
shell: pwsh
run: |
Set-PSDebug -Trace 1
# stop after any command returns an error
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
# see: https://github.com/aantron/luv/issues/162
$env:PATH="${env:CYG_ROOT}\bin;${env:CYG_ROOT}\usr\x86_64-w64-mingw32\bin;${env:PATH}"
opam install haxe --deps-only
Expand Down
3 changes: 3 additions & 0 deletions extra/github-actions/install-ocaml-libs-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
shell: pwsh
run: |
Set-PSDebug -Trace 1
# stop after any command returns an error
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
# see: https://github.com/aantron/luv/issues/162
$env:PATH="${env:CYG_ROOT}\bin;${env:CYG_ROOT}\usr\x86_64-w64-mingw32\bin;${env:PATH}"
opam install haxe --deps-only
Expand Down

0 comments on commit f8a669a

Please sign in to comment.