Skip to content

Commit

Permalink
Prevent ci.yml to use ocaml beyond 5.2.0 (#2823)
Browse files Browse the repository at this point in the history
* Prevent ci.yml to use ocaml beyond 5.2.0

* Add ppx_deriving dep

---------

Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
  • Loading branch information
cuihtlauac and Cuihtlauac ALVARADO authored Nov 20, 2024
1 parent 350d10c commit 30d3a8c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
workflow_dispatch:

jobs:
build:
Expand All @@ -22,7 +23,7 @@ jobs:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- "5.2"
- "5.2.0"

steps:
- name: Checkout Repo
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/debug-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- "4.14"
- "5.2.0"

steps:
- name: Checkout Repo
Expand All @@ -42,9 +42,15 @@ jobs:
- name: Install opam dependencies
run: opam install --deps-only --with-test .

- name: Install ocamlformat
run: opam install ocamlformat.0.26.2

- name: Build project
run: opam exec -- dune build @install

- name: Run tests
run: opam exec -- dune test

- name: Format code
run: opam exec -- dune build --auto-promote @fmt
if: runner.os == 'Linux'
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
(ocaml
(>= 4.14.0))
dune
ppx_deriving
cohttp
cohttp-lwt-unix
bos
Expand Down
1 change: 1 addition & 0 deletions ocamlorg.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ bug-reports: "https://github.com/ocaml/ocaml.org/issues"
depends: [
"ocaml" {>= "4.14.0"}
"dune" {>= "3.15"}
"ppx_deriving"
"cohttp"
"cohttp-lwt-unix"
"bos"
Expand Down

0 comments on commit 30d3a8c

Please sign in to comment.