Skip to content

Commit

Permalink
Downgrade setup-ocaml to 3.1.5. (#11906)
Browse files Browse the repository at this point in the history
* Downgrade setup-ocaml to 3.1.5.

* Set $PSNativeCommandUseErrorActionPreference = $true in the install OCaml libraries step.
This ensures that the step fails if any opam commands fail.
  • Loading branch information
Apprentice-Alchemist authored Jan 1, 2025
1 parent 9a7121e commit 583ea02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: neko -version 2>&1

- name: Setup ocaml
uses: ocaml/setup-ocaml@v3
uses: ocaml/setup-ocaml@v3.1.5
with:
ocaml-compiler: 4
opam-local-packages: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion extra/github-actions/install-ocaml-windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Setup ocaml
uses: ocaml/setup-ocaml@v3
uses: ocaml/setup-ocaml@v3.1.5
with:
ocaml-compiler: 4
opam-local-packages: |
Expand Down

0 comments on commit 583ea02

Please sign in to comment.