-
-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Simplify windows ci with native opam (#11879)
* [ci] Remove windows 32 ocaml install script * [ci] Remove installation of perl libraries These were only needed for camlp5 which has now been removed * [ci] Remove unneeded PATH step on windows This is handled now by the mingw-w64-shims package: https://github.com/dra27/mingw-w64-shims/blob/3c4a82700d9b03443ad6f2927449f7a8f25a77cf/mingw-w64-shims.opam#L8 * [ci] Use cygwin tar * [ci] Update setup-ocaml * [ci] Update to latest ocaml 4 release on windows 4.08.1 was not supported natively on windows * [ci] Add required PATH entries for installing luv See: aantron/luv#162 * [ci] Run windows make commands natively With native opam, we no longer need to build from the cygwin bash. This means we can rely on native git.
- Loading branch information
Showing
6 changed files
with
37 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,15 @@ | ||
- name: Setup ocaml | ||
id: ocaml | ||
continue-on-error: true | ||
uses: kLabz/setup-ocaml@win32 | ||
uses: ocaml/setup-ocaml@v3 | ||
with: | ||
ocaml-compiler: 4.08.1 | ||
opam-depext: false | ||
opam-repositories: | | ||
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset | ||
default: https://github.com/ocaml/opam-repository.git | ||
ocaml-compiler: 4 | ||
opam-local-packages: | | ||
haxe.opam | ||
cache-prefix: w32-v1 | ||
|
||
# TODO make it work on first try | ||
# (when cygwin cache doesn't exist, ocaml install fails with a curl error) | ||
- name: Setup ocaml (second chance) | ||
if: steps.ocaml.outcome == 'failure' | ||
uses: kLabz/setup-ocaml@win32 | ||
with: | ||
ocaml-compiler: 4.08.1 | ||
opam-depext: false | ||
opam-repositories: | | ||
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset | ||
default: https://github.com/ocaml/opam-repository.git | ||
opam-local-packages: | | ||
haxe.opam | ||
cache-prefix: w32-v1 | ||
- name: Install dependencies | ||
shell: pwsh | ||
env: | ||
MBEDTLS_VERSION: 2.16.3 | ||
run: | | ||
Set-PSDebug -Trace 1 | ||
curl.exe -fsSL -o "libmbedtls.tar.xz" --retry 3 https://github.com/Simn/mingw64-mbedtls/releases/download/2.16.3/mingw64-$($env:MINGW_ARCH)-mbedtls-2.16.3-1.tar.xz | ||
& "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'curl -L https://cpanmin.us | perl - App::cpanminus') | ||
& "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'cpanm IPC::System::Simple module') | ||
& "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'cpanm String::ShellQuote') | ||
& "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'echo "$OLDPWD"') | ||
& "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && tar -C / -xvf libmbedtls.tar.xz') | ||
curl.exe -fsSL -o "libmbedtls.tar.xz" --retry 3 ` | ||
https://github.com/Simn/mingw64-mbedtls/releases/download/${{ env.MBEDTLS_VERSION }}/mingw64-${{ env.MINGW_ARCH }}-mbedtls-${{ env.MBEDTLS_VERSION }}-1.tar.xz | ||
${{ env.CYG_ROOT }}\bin\tar.exe -C ${{ env.CYG_ROOT }} -xvf libmbedtls.tar.xz |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters