Skip to content

Commit

Permalink
ocaml/setup-ocaml@v3
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Jun 19, 2024
1 parent 3e35db2 commit 727f859
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}

Expand Down Expand Up @@ -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

0 comments on commit 727f859

Please sign in to comment.