File tree Expand file tree Collapse file tree 8 files changed +7
-15
lines changed Expand file tree Collapse file tree 8 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 11
11
uses : ocaml/setup-ocaml@v3
12
12
with :
13
13
ocaml-compiler : ${{ inputs.ocaml_version }}
14
+
15
+ - name : Setup OPAM environment
16
+ shell : bash
17
+ run : |
18
+ # Export all OPAM environment variables to GITHUB_ENV
19
+ # This avoids other steps to run `eval $(opam env)`
20
+ opam env >> $GITHUB_ENV
Original file line number Diff line number Diff line change 40
40
- name : Run criterion bench
41
41
run : |
42
42
set -x
43
- eval $(opam env)
44
43
SAVE_BASELINE_NAME=master-baseline-data bash scripts/bench-criterion-mina-circuits.sh cargo bench -p kimchi --bench proof_criterion
45
44
46
45
- name : Copy previous baseline to target folder
Original file line number Diff line number Diff line change 38
38
39
39
- name : Ensure that everything builds
40
40
run : |
41
- eval $(opam env)
42
41
cargo check --benches --examples
43
42
44
43
# 'sleep 1' are necessary because otherwise the outputs are intermixed.
63
62
- name : Run criterion bench
64
63
run : |
65
64
set -x
66
- eval $(opam env)
67
65
BASELINE_NAME=master-baseline-data bash scripts/bench-criterion-mina-circuits.sh cargo bench -p kimchi --bench proof_criterion
Original file line number Diff line number Diff line change 44
44
- name : Run criterion bench
45
45
run : |
46
46
set -x
47
- eval $(opam env)
48
47
cargo criterion -p kimchi --bench proof_criterion --color never > criterion_bench 2>&1
49
48
cat criterion_bench
50
49
Original file line number Diff line number Diff line change 59
59
60
60
- name : Run all tests with the code coverage
61
61
run : |
62
- eval $(opam env)
63
62
make nextest-all-with-coverage
64
63
make test-doc-with-coverage
65
64
make generate-test-coverage-report
Original file line number Diff line number Diff line change @@ -136,11 +136,9 @@ jobs:
136
136
137
137
- name : Doc tests
138
138
run : |
139
- eval $(opam env)
140
139
make test-doc
141
140
- name : generate docs
142
141
run : |
143
- eval $(opam env)
144
142
make generate-doc
145
143
146
144
#
@@ -164,7 +162,6 @@ jobs:
164
162
matrix.rust_toolchain_version == needs.define-matrix.outputs.default_rust_version &&
165
163
matrix.os == needs.define-matrix.outputs.default_os
166
164
run : |
167
- eval $(opam env)
168
165
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --all-features --no-deps --workspace --exclude xtask
169
166
cp -r ./target/doc ./book/book/html/rustdoc
170
167
@@ -209,7 +206,6 @@ jobs:
209
206
210
207
- name : Lint (clippy)
211
208
run : |
212
- eval $(opam env)
213
209
make lint
214
210
215
211
build :
@@ -242,7 +238,6 @@ jobs:
242
238
243
239
- name : Ensure that everything builds
244
240
run : |
245
- eval $(opam env)
246
241
make
247
242
248
243
tests :
@@ -283,5 +278,4 @@ jobs:
283
278
284
279
- name : Run non-heavy tests without the code coverage
285
280
run : |
286
- eval $(opam env)
287
281
make nextest
Original file line number Diff line number Diff line change 84
84
85
85
- name : Execute o1vm in E2E flavor using cached data
86
86
run : |
87
- eval $(opam env)
88
87
cd o1vm
89
88
unzip -q -o /tmp/o1vm-e2e-testing-cache.zip -d ./
90
89
RUST_LOG=debug RUN_WITH_CACHED_DATA="y" FILENAME="env-for-latest-l2-block.sh" O1VM_FLAVOR="pickles" STOP_AT="=3000000" ./run-code.sh
Original file line number Diff line number Diff line change 38
38
39
39
- name : Build export_test_vectors binary
40
40
run : |
41
- eval $(opam env)
42
41
cargo build --bin export_test_vectors --all-features
43
42
44
43
- name : Test export_test_vectors commands
48
47
MODES="legacy kimchi"
49
48
OUTPUT_FORMATS="json es5"
50
49
51
- eval $(opam env)
52
50
53
51
for format in $FORMATS; do
54
52
for mode in $MODES; do
@@ -132,6 +130,5 @@ jobs:
132
130
133
131
- name : Run regression tests
134
132
run : |
135
- eval $(opam env)
136
133
echo "Running regression tests..."
137
134
cargo test --bin export_test_vectors test_export_regression_all_formats
You can’t perform that action at this time.
0 commit comments