Skip to content

Commit

Permalink
ci: build with ocaml 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Khady committed Dec 26, 2024
1 parent f8b7e9d commit 3262fd1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# - windows-latest
ocaml-version:
- 4.14
- 5.1
- 5.2

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

Expand All @@ -24,11 +24,10 @@ jobs:
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
dune-cache: true
opam-depext-flags: "--with-test"
allow-prerelease-opam: true

- run: opam install . --deps-only --with-test
Expand All @@ -38,3 +37,11 @@ jobs:

- name: run test
run: opam exec -- dune runtest

- run: opam install . --deps-only --with-test --criteria='+removed,+count[version-lag,solution]' --solver=builtin-0install

- name: build project with lower bounds
run: opam exec -- dune build

- name: run test with lower bounds
run: opam exec -- dune runtest
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use OCaml 5.1
- name: Use OCaml 5.2
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.1
ocaml-compiler: 5.2
dune-cache: true
opam-depext-flags: "--with-doc"
allow-prerelease-opam: true
Expand All @@ -28,10 +28,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use OCaml 5.1
- name: Use OCaml 5.2
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.1
ocaml-compiler: 5.2
dune-cache: true
opam-depext-flags: "--with-doc"
allow-prerelease-opam: true
Expand All @@ -45,10 +45,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use OCaml 5.1
- name: Use OCaml 5.2
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.1
ocaml-compiler: 5.2
dune-cache: true
opam-depext-flags: "--with-doc"
allow-prerelease-opam: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/opam-dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml 5.1
- name: Set-up OCaml 5.2
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.1
ocaml-compiler: 5.2
dune-cache: true
allow-prerelease-opam: true

Expand Down

0 comments on commit 3262fd1

Please sign in to comment.