Add version field do JsonExport (#3614)
#175
This file contains hidden or 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: Post-merge APC tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**.rs" | |
| - "**.toml" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-C target-cpu=native" | |
| RUST_BACKTRACE: 1 | |
| JEMALLOC_SYS_WITH_MALLOC_CONF: "retain:true,background_thread:true,metadata_thp:always,dirty_decay_ms:10000,muzzy_decay_ms:10000,abort_conf:true" | |
| POWDR_OPENVM_SEGMENT_DELTA: 50000 | |
| jobs: | |
| test_guests_apc: | |
| runs-on: server-dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: ⚡ Cache rust | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-release-apc-${{ hashFiles('**/Cargo.toml') }} | |
| - name: Build | |
| run: cargo build --release -p powdr-openvm | |
| - name: Install cargo openvm | |
| # Rust 1.90 is needed by fresher versions of dependencies of cargo-openvm. | |
| run: | | |
| rustup toolchain install 1.90 | |
| cargo +1.90 install --git 'http://github.com/powdr-labs/openvm.git' --rev "v1.4.2-powdr-rc.2" --locked cargo-openvm | |
| - name: Run keccak with 100 APCs | |
| run: /usr/bin/time -v cargo run --bin powdr_openvm -r prove guest-keccak --input 10000 --autoprecompiles 100 --recursion | |
| - name: Run ECC with 100 APCs | |
| run: /usr/bin/time -v cargo run --bin powdr_openvm -r prove guest-ecc-powdr-affine-hint --input 20 --autoprecompiles 100 --recursion | |
| - name: Run ecrecover with 100 APCs | |
| run: /usr/bin/time -v cargo run --bin powdr_openvm -r prove guest-ecrecover --input 20 --autoprecompiles 100 --recursion | |
| - name: Patch benchmark | |
| uses: ./.github/actions/patch-openvm-reth-benchmark | |
| - name: Run reth benchmark | |
| run: | | |
| cd openvm-reth-benchmark | |
| RES_DIR=reth | |
| mkdir -p $RES_DIR | |
| echo "export RPC_1=${{ secrets.RPC_1 }}" >> .env | |
| # prove with 100 APCs | |
| /usr/bin/time -v ./run.sh --apc 100 --mode prove-stark || exit 1 | |
| echo "Finished proving with 100 APCs" | |
| - name: Save revisions and run info | |
| run: | | |
| echo "openvm-reth-benchmark: $(git -C openvm-reth-benchmark rev-parse HEAD)" > run.txt | |
| echo "powdr: $(git rev-parse HEAD)" >> run.txt | |
| echo "run: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" >> run.txt | |
| - name: upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bench-results | |
| path: | | |
| run.txt |