Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Ocaml CI

on:
- pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout tree
uses: actions/checkout@v4

# We don't want to init all submodules as some are private.
- name: Init ir-calcul submodule
run:
git submodule init ir-calcul

git submodule update ir-calcul

- name: Set-up Ocaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.2
opam-pin: false

- run: opam install . --deps-only

- run: opam exec -- dune build

- run: opam exec -- make tests
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
profile = default
margin = 80
exp-grouping = preserve
version=0.19.0
module-item-spacing = sparse
6 changes: 3 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

(generate_opam_files true)

(source
(uri git+https://github.com/MLanguage/mlang.git))
;(source
; (uri git+https://github.com/MLanguage/mlang.git))

(homepage https://github.com/MLanguage/mlang)

Expand Down Expand Up @@ -67,4 +67,4 @@
(odoc
(>= 1.5.3))
(ocamlformat
(= 0.19.0))))
(= 0.19.0))))
2 changes: 1 addition & 1 deletion irj_checker.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ depends: [
"ocaml" {>= "4.11.2"}
"dune" {build}
"odoc" {>= "1.5.3"}
"ocamlformat" {= "0.19.0"}
"ocamlformat" {<= "0.20.0"}
]
build: [
["dune" "subst"] {pinned}
Expand Down
2 changes: 1 addition & 1 deletion mlang.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ depends: [
"dune-build-info" {= "2.5.1"}
"num" {>= "1.3"}
"mlgmpidl" {>= "1.2.12"}
"ocamlformat" {= "0.19.0"}
"ocamlformat" {<= "0.20.0"}
"parmap" {= "1.2.3"}
]
build: [
Expand Down
Loading