diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ccfa6c6..ab891b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,21 +20,15 @@ jobs: - macos-latest ocaml-compiler: - 4.14.x - include: - - os: ubuntu-latest - ocaml-compiler: 5.1.x - - os: macos-latest - ocaml-compiler: 5.1.x - - os: windows-latest - ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw + - 5.2.x runs-on: ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Use OCaml ${{ matrix.ocaml-compiler }} + - name : Use OCaml ${{ matrix.ocaml-compiler }} uses: ocaml/setup-ocaml@v2 if: runner.os != 'Windows' with: @@ -43,18 +37,12 @@ jobs: opam-depext: true opam-depext-flags: --with-test - - name: Use OCaml ${{ matrix.ocaml-compiler }} - uses: ocaml/setup-ocaml@v2 - if: runner.os == 'Windows' + - name: Set-up OCaml ${{ matrix.ocaml-compiler }} + uses: kit-ty-kate/setup-ocaml@win52 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - opam-repositories: | - dra27: https://github.com/dra27/opam-repository.git#windows-5.0 - default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset - opam: https://github.com/ocaml/opam-repository.git dune-cache: true - opam-depext: true - opam-depext-flags: --with-test + allow-prerelease-opam: true - name: configure tree run: opam exec -- ./configure @@ -68,4 +56,3 @@ jobs: - run: opam install . --with-test - run: opam exec -- git diff --exit-code - if: ${{ !matrix.skip-test }}