File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,21 @@ jobs:
40
40
ledger-tests :
41
41
timeout-minutes : 20
42
42
runs-on : ubuntu-24.04
43
+ strategy :
44
+ matrix :
45
+ ocaml_version : [4.14.2]
43
46
steps :
44
47
- name : Git checkout
45
48
uses : actions/checkout@v5
46
49
47
50
- name : Setup build dependencies
48
51
uses : ./.github/actions/setup-build-deps
49
52
53
+ - name : Use shared OCaml setting up steps
54
+ uses : ./.github/actions/setup-ocaml
55
+ with :
56
+ ocaml_version : ${{ matrix.ocaml_version }}
57
+
50
58
- name : Setup Rust
51
59
uses : ./.github/actions/setup-rust
52
60
with :
@@ -97,13 +105,21 @@ jobs:
97
105
vrf-tests :
98
106
timeout-minutes : 8
99
107
runs-on : ubuntu-24.04
108
+ strategy :
109
+ matrix :
110
+ ocaml_version : [4.14.2]
100
111
steps :
101
112
- name : Git checkout
102
113
uses : actions/checkout@v5
103
114
104
115
- name : Setup build dependencies
105
116
uses : ./.github/actions/setup-build-deps
106
117
118
+ - name : Use shared OCaml setting up steps
119
+ uses : ./.github/actions/setup-ocaml
120
+ with :
121
+ ocaml_version : ${{ matrix.ocaml_version }}
122
+
107
123
- name : Setup Rust
108
124
uses : ./.github/actions/setup-rust
109
125
with :
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ concurrency:
22
22
jobs :
23
23
test-doc-commands :
24
24
runs-on : ubuntu-22.04
25
+ strategy :
26
+ matrix :
27
+ ocaml_version : [4.14.2]
25
28
steps :
26
29
- name : Git checkout
27
30
uses : actions/checkout@v5
36
39
toolchain : 1.84
37
40
cache-prefix : test-doc-commands-v0
38
41
42
+ - name : Use shared OCaml setting up steps
43
+ uses : ./.github/actions/setup-ocaml
44
+ with :
45
+ ocaml_version : ${{ matrix.ocaml_version }}
46
+
39
47
- name : Download circuits files
40
48
uses : ./.github/actions/setup-circuits
41
49
Original file line number Diff line number Diff line change @@ -51,10 +51,15 @@ jobs:
51
51
matrix :
52
52
os : [ubuntu-24.04]
53
53
toolchain : [nightly]
54
+ ocaml_version : [4.14.2]
54
55
steps :
55
56
- uses : actions/checkout@v5
56
57
- name : Setup build dependencies
57
58
uses : ./.github/actions/setup-build-deps
59
+ - name : Use shared OCaml setting up steps
60
+ uses : ./.github/actions/setup-ocaml
61
+ with :
62
+ ocaml_version : ${{ matrix.ocaml_version }}
58
63
- name : Setup Rust
59
64
uses : ./.github/actions/setup-rust
60
65
with :
Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ NETWORK ?= devnet
25
25
VERBOSITY ?= info
26
26
GIT_COMMIT := $(shell git rev-parse --short=8 HEAD)
27
27
28
+ OPAM_PATH := $(shell command -v opam 2>/dev/null)
29
+
30
+ ifdef OPAM_PATH
31
+ # This captures what `eval $(opam env)` would set in your shell
32
+ OPAM_ENV := $(shell eval $$(opam env ) && env | grep '^OPAM\|^PATH\|^CAML' | sed 's/^/export /')
33
+ export $(shell eval $$(opam env) && env | grep '^OPAM\|^PATH\|^CAML' | cut -d= -f1)
34
+ $(foreach v,$(shell eval $$(opam env) && env | grep '^OPAM\|^PATH\|^CAML'),$(eval export $(v)))
35
+ endif
36
+
28
37
.PHONY : help
29
38
help : # # Ask for help!
30
39
@grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
You can’t perform that action at this time.
0 commit comments