Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .github/actions/ocaml-shared/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ runs:
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ inputs.ocaml_version }}

- name: Setup OPAM environment
run: |
# Export all OPAM environment variables to GITHUB_ENV
# This avoids other steps to run `eval $(opam env)`
opam env | sed -E 's/; export [A-Za-z_][A-Za-z0-9_]*;?//g' >> $GITHUB_ENV
1 change: 0 additions & 1 deletion .github/workflows/benches-mina-prover-set-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
- name: Run criterion bench
run: |
set -x
eval $(opam env)
SAVE_BASELINE_NAME=master-baseline-data bash scripts/bench-criterion-mina-circuits.sh cargo bench -p kimchi --bench proof_criterion

- name: Copy previous baseline to target folder
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/benches-mina-prover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:

- name: Ensure that everything builds
run: |
eval $(opam env)
cargo check --benches --examples

# 'sleep 1' are necessary because otherwise the outputs are intermixed.
Expand All @@ -63,5 +62,4 @@ jobs:
- name: Run criterion bench
run: |
set -x
eval $(opam env)
BASELINE_NAME=master-baseline-data bash scripts/bench-criterion-mina-circuits.sh cargo bench -p kimchi --bench proof_criterion
1 change: 0 additions & 1 deletion .github/workflows/benches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
- name: Run criterion bench
run: |
set -x
eval $(opam env)
cargo criterion -p kimchi --bench proof_criterion --color never > criterion_bench 2>&1
cat criterion_bench

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:

- name: Run all tests with the code coverage
run: |
eval $(opam env)
make nextest-all-with-coverage
make test-doc-with-coverage
make generate-test-coverage-report
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,9 @@ jobs:

- name: Doc tests
run: |
eval $(opam env)
make test-doc
- name: generate docs
run: |
eval $(opam env)
make generate-doc

#
Expand All @@ -164,7 +162,6 @@ jobs:
matrix.rust_toolchain_version == needs.define-matrix.outputs.default_rust_version &&
matrix.os == needs.define-matrix.outputs.default_os
run: |
eval $(opam env)
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --all-features --no-deps --workspace --exclude xtask
cp -r ./target/doc ./book/book/html/rustdoc

Expand Down Expand Up @@ -209,7 +206,6 @@ jobs:

- name: Lint (clippy)
run: |
eval $(opam env)
make lint

build:
Expand Down Expand Up @@ -242,7 +238,6 @@ jobs:

- name: Ensure that everything builds
run: |
eval $(opam env)
make

tests:
Expand Down Expand Up @@ -283,5 +278,4 @@ jobs:

- name: Run non-heavy tests without the code coverage
run: |
eval $(opam env)
make nextest
1 change: 0 additions & 1 deletion .github/workflows/o1vm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:

- name: Execute o1vm in E2E flavor using cached data
run: |
eval $(opam env)
cd o1vm
unzip -q -o /tmp/o1vm-e2e-testing-cache.zip -d ./
RUST_LOG=debug RUN_WITH_CACHED_DATA="y" FILENAME="env-for-latest-l2-block.sh" O1VM_FLAVOR="pickles" STOP_AT="=3000000" ./run-code.sh
3 changes: 0 additions & 3 deletions .github/workflows/test-export-vectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:

- name: Build export_test_vectors binary
run: |
eval $(opam env)
cargo build --bin export_test_vectors --all-features

- name: Test export_test_vectors commands
Expand All @@ -48,7 +47,6 @@ jobs:
MODES="legacy kimchi"
OUTPUT_FORMATS="json es5"

eval $(opam env)

for format in $FORMATS; do
for mode in $MODES; do
Expand Down Expand Up @@ -132,6 +130,5 @@ jobs:

- name: Run regression tests
run: |
eval $(opam env)
echo "Running regression tests..."
cargo test --bin export_test_vectors test_export_regression_all_formats
Loading