- name: Setup ocaml
  uses: ocaml/setup-ocaml@v3
  with:
    ocaml-compiler: 4
    opam-local-packages: |
      haxe.opam

- name: Install dependencies
  shell: pwsh
  env:
    MBEDTLS_VERSION: 2.16.3
  run: |
    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
