Skip to content

Commit 30d3a8c

Browse files
cuihtlauacCuihtlauac ALVARADO
andauthored
Prevent ci.yml to use ocaml beyond 5.2.0 (#2823)
* Prevent ci.yml to use ocaml beyond 5.2.0 * Add ppx_deriving dep --------- Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
1 parent 350d10c commit 30d3a8c

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
schedule:
99
# Prime the caches every Monday
1010
- cron: 0 1 * * MON
11+
workflow_dispatch:
1112

1213
jobs:
1314
build:
@@ -22,7 +23,7 @@ jobs:
2223
- macos-latest
2324
- ubuntu-latest
2425
ocaml-compiler:
25-
- "5.2"
26+
- "5.2.0"
2627

2728
steps:
2829
- name: Checkout Repo

.github/workflows/debug-ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- macos-latest
1717
- ubuntu-latest
1818
ocaml-compiler:
19-
- "4.14"
19+
- "5.2.0"
2020

2121
steps:
2222
- name: Checkout Repo
@@ -42,9 +42,15 @@ jobs:
4242
- name: Install opam dependencies
4343
run: opam install --deps-only --with-test .
4444

45+
- name: Install ocamlformat
46+
run: opam install ocamlformat.0.26.2
47+
4548
- name: Build project
4649
run: opam exec -- dune build @install
4750

4851
- name: Run tests
4952
run: opam exec -- dune test
5053

54+
- name: Format code
55+
run: opam exec -- dune build --auto-promote @fmt
56+
if: runner.os == 'Linux'

dune-project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
(ocaml
3434
(>= 4.14.0))
3535
dune
36+
ppx_deriving
3637
cohttp
3738
cohttp-lwt-unix
3839
bos

ocamlorg.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ bug-reports: "https://github.com/ocaml/ocaml.org/issues"
2020
depends: [
2121
"ocaml" {>= "4.14.0"}
2222
"dune" {>= "3.15"}
23+
"ppx_deriving"
2324
"cohttp"
2425
"cohttp-lwt-unix"
2526
"bos"

0 commit comments

Comments
 (0)