Make circuits and assignment tables: CI implementation #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make circuits and assignment tables: CI implementation
Changes in the tutorial will follow this PR (see #4)
ci: build circuit and assignment table
Script
./scripts/build-circuit-ll.sh
runs in an environment with zkLLVM.First, it builds the LLVM-IR form or circuit (
.ll
) with zkLLVM CLI.Next, it builds the assignment table
.tbl
and circuit.crct
withassigner CLI.
Script
scripts/docker-run.sh
runs the first one in a container basedon a prebuilt image
ghcr.io/nilfoundation/zkllvm-template
,that has all required dependencies, in particular, zkLLVM and Boost.
Script uses Podman when it is available, and Docker otherwise.
Using separate scripts (rather than
run
steps in CI) enables testingthe same workflow locally with a single command.
CI runs on default GitHub's
ubuntu-22.04
runners so that devs who forkthis repository would still have CI working in their forks.
Resolves #5
Remove blueprint dependency from crypto3/marshalling/zk
Dependency on crypto3::blueprint in zk/marshalling was causing
the following error:
Resolves #22
Crypto3: support optional Boost static library usage
Related to NilFoundation/zkLLVM#85
Revert commits related to #14
This reverts commits:
Resolves #24