Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
# Run opam udpate to get an up-to-date repo
- name: Update opam repo
run: opam update
# Pin a specific version of menhir to ensure stability for
# .messages ordering and state numbering
- name: Install menhir
run: opam pin add menhir 20260209
# Install ocaml deps
- name: Install Ocaml deps
run: opam install . --deps-only --with-test --with-doc
Expand Down
11 changes: 11 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ This file is incomplete, but may have interesting tips if you want to start
hacking on dolmen. If you're having troubles, don't hesitate to contact me
directly, ^^

## Menhir version

Some tests may depend on specifi versions of menhir. Notably the syntax error
messages files can have slight changes between menhir versions (harmless changes,
but they still induce a diff on the .messages files). Therefore to ensure that all
tests succeed, users are encouraged to use the following version of menhir:

```
opam install menhir.20260209
```

## Build locally

You need to have [ocaml](https://ocaml.org/) installed to compile dolmen.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ gentests: tools/gentests.ml $(filter-out $(wildcard tests/**/*.t/**/*),$(wildcar
dune exec -- tools/gentests.exe tests/

test: gentests
dune build $(FLAGS) @runtest
dune build $(FLAGS) @runtest @messages

promote: gentests
-dune build $(FLAGS) @runtest
-dune build $(FLAGS) @runtest @messages
dune promote $(FLAGS)

coverage:
Expand Down
2 changes: 1 addition & 1 deletion dolmen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build: [
depends: [
# note: macos/arm64 -> ocaml >= 4.10
"ocaml" { >= "4.08.1"}
"menhir" {>= "20211230" & < "20260112"}
"menhir" {>= "20211230"}
"dune" { >= "3.0" }
"dune-site" { >= "3.0" }
"fmt" { >= "0.8.7" }
Expand Down
Loading