From 727f8598c8c4529d824429c42b223920b336891f Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Tue, 11 Jun 2024 17:47:55 +0900 Subject: [PATCH] ocaml/setup-ocaml@v3 Signed-off-by: Sora Morimoto --- .github/workflows/workflow.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ca13f70fb..0894b82f2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -41,33 +41,33 @@ jobs: local-packages: | *.opam - os: macos-latest - ocaml-compiler: "4.14" + ocaml-compiler: "5.2" libev: true ppx: true local-packages: | *.opam - os: windows-latest - ocaml-compiler: "4.14" + ocaml-compiler: "5.2" libev: false ppx: true local-packages: | *.opam - os: ubuntu-latest - ocaml-compiler: "4.14" + ocaml-compiler: "5.2" libev: true ppx: false local-packages: | *.opam !lwt_ppx.opam - os: macos-latest - ocaml-compiler: "4.14" + ocaml-compiler: "5.2" libev: true ppx: false local-packages: | *.opam !lwt_ppx.opam - os: windows-latest - ocaml-compiler: "4.14" + ocaml-compiler: "5.2" libev: false ppx: false local-packages: | @@ -77,20 +77,19 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Hack Git CRLF for ocaml/setup-ocaml#529 issue - run: git config --global core.autocrlf input - - - name: Checkout code + - name: Checkout tree uses: actions/checkout@v4 - name: Set-up OCaml - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3.0.0-alpha with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - opam-depext-flags: --with-test opam-local-packages: ${{ matrix.local-packages }} allow-prerelease-opam: true + - run: opam pin add mingw-w64-shims git+https://github.com/dra27/mingw-w64-shims.git#internals + if: ${{ runner.os == 'Windows' }} + - run: opam install conf-libev if: ${{ matrix.libev == true }} @@ -120,10 +119,10 @@ jobs: uses: actions/checkout@v4 - name: Set-up OCaml - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3.0.0-alpha with: ocaml-compiler: "5.2" allow-prerelease-opam: true dune-cache: true - - uses: ocaml/setup-ocaml/lint-opam@v2 + - uses: ocaml/setup-ocaml/lint-opam@v3.0.0-alpha