install-ocaml-windows64.yml 972 B

1234567891011121314151617181920
  1. - name: Setup ocaml
  2. uses: ocaml/setup-ocaml@v2
  3. with:
  4. ocaml-compiler: 4.08.1
  5. opam-repositories: |
  6. opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
  7. default: https://github.com/ocaml/opam-repository.git
  8. opam-local-packages: |
  9. haxe.opam
  10. - name: Install dependencies
  11. shell: pwsh
  12. run: |
  13. Set-PSDebug -Trace 1
  14. 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
  15. & "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'curl -L https://cpanmin.us | perl - App::cpanminus')
  16. & "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'cpanm IPC::System::Simple module')
  17. & "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'cpanm String::ShellQuote')
  18. & "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'echo "$OLDPWD"')
  19. & "$($env:CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && tar -C / -xvf libmbedtls.tar.xz')