[book] add the toml related stuff to the algebra chapter (#1063) #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenVM CLI Tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["**"] | |
paths: | |
- "crates/circuits/primitives/**" | |
- "crates/vm/**" | |
- "crates/sdk/**" | |
- "crates/cli/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
OPENVM_FAST_TEST: "1" | |
# TODO: E2E build, transpile, run, keygen, prove, contract, verify on large machine | |
jobs: | |
app-level-cli: | |
runs-on: | |
- runs-on | |
- run-id=${{ github.run_id }} | |
- family=m7 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- uses: taiki-e/install-action@nextest | |
- name: Install solc # svm should support arm64 linux | |
run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.19 && solc --version | |
- name: Install architecture specific tools | |
run: | | |
arch=$(uname -m) | |
case $arch in | |
arm64|aarch64) | |
rustup component add rust-src --toolchain nightly-2024-10-30-aarch64-unknown-linux-gnu | |
;; | |
x86_64|amd64) | |
rustup component add rust-src --toolchain nightly-2024-10-30-x86_64-unknown-linux-gnu | |
;; | |
*) | |
echo "Unsupported architecture: $arch" | |
exit 1 | |
;; | |
esac | |
- name: Setup halo2 | |
run: | | |
bash ./extensions/native/recursion/trusted_setup_s3.sh | |
# TEMPORARY | |
- name: Give GitHub Actions access to private repositories | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }} | |
# TODO: CLI build, transpile, run, (keygen), prove, contract, verify | |
- name: Run app-level CLI commands | |
working-directory: crates/cli | |
run: | | |
export RUST_BACKTRACE=1 | |
cargo build | |
cargo run --bin cargo-openvm -- openvm keygen --config ./example/app_config.toml --output app.pk --vk-output app.vk |