Skip to content

Commit

Permalink
Add ocaml 5 to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Heuzard committed Mar 15, 2023
1 parent c92b1d0 commit ff37936
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
- macos-lastest
ocaml-compiler:
- 4.14.x
include:
- os: ubuntu-latest
ocaml-compiler: 5.0.x
- os: macos-lastest
ocaml-compiler: 5.0.x
- os: windows-latest
ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw

runs-on: ${{ matrix.os }}

Expand All @@ -29,12 +36,26 @@ jobs:

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
if: runner.os != 'Windows'
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
opam-depext: true
opam-depext-flags: --with-test

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
if: runner.os == 'Windows'
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

- name: configure tree
run: opam exec -- ./configure

Expand Down

0 comments on commit ff37936

Please sign in to comment.