Skip to content

Commit ed73d4a

Browse files
committed
Force OCaml >= 5.4
This is to check the CI with the last version of OCaml.
1 parent 5480f45 commit ed73d4a

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- name: Install EasyCrypt dependencies
2323
run: |
24-
opam pin add -n easycrypt .
25-
opam install --deps-only --depext-only --confirm-level=unsafe-yes easycrypt
26-
opam install --deps-only easycrypt
24+
opam update
25+
opam pin add --update-invariant -n easycrypt .
26+
opam install --update-invariant --deps-only --depext-only --confirm-level=unsafe-yes easycrypt
27+
opam install --update-invariant --deps-only easycrypt
2728
- name: Compile EasyCrypt
2829
run: opam exec -- make PROFILE=ci
2930

@@ -61,9 +62,10 @@ jobs:
6162
- uses: actions/checkout@v4
6263
- name: Install EasyCrypt dependencies
6364
run: |
64-
opam pin add -n easycrypt .
65-
opam install --deps-only --depext-only --confirm-level=unsafe-yes easycrypt
66-
opam install --deps-only easycrypt
65+
opam update
66+
opam pin add --update-invariant -n easycrypt .
67+
opam install --update-invariant --deps-only --depext-only --confirm-level=unsafe-yes easycrypt
68+
opam install --update-invariant --deps-only easycrypt
6769
- name: Compile EasyCrypt
6870
run: opam exec -- make
6971
- name: Detect SMT provers
@@ -129,9 +131,10 @@ jobs:
129131
project/${{ matrix.target.name }}
130132
- name: Install EasyCrypt dependencies
131133
run: |
132-
opam pin add -n easycrypt easycrypt
133-
opam install --deps-only --depext-only --confirm-level=unsafe-yes easycrypt
134-
opam install --deps-only easycrypt
134+
opam update
135+
opam pin add --update-invariant -n easycrypt easycrypt
136+
opam install --update-invariant --deps-only --depext-only --confirm-level=unsafe-yes easycrypt
137+
opam install --update-invariant --deps-only easycrypt
135138
- name: Compile & Install EasyCrypt
136139
run: opam exec -- make -C easycrypt build install
137140
- name: Detect SMT provers

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(name easycrypt)
1313
(sites (lib theories) (libexec commands) (lib config))
1414
(depends
15-
(ocaml (>= 4.08.0))
15+
(ocaml (>= 5.4))
1616
(batteries (>= 3))
1717
(camlp-streams (>= 5))
1818
camlzip

easycrypt.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
depends: [
3-
"ocaml" {>= "4.08.0"}
3+
"ocaml" {>= "5.4"}
44
"batteries" {>= "3"}
55
"camlp-streams" {>= "5"}
66
"camlzip"

0 commit comments

Comments
 (0)