Bump version #1370
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
--- # Run and populate blockchain with transactions and generate proofs using native tracer | |
name: Jerigon Integration | |
on: | |
push: | |
branches: [develop, main] | |
pull_request: | |
branches: | |
- "**" | |
workflow_dispatch: | |
branches: | |
- "**" | |
env: | |
CARGO_TERM_COLOR: always | |
REGISTRY: ghcr.io | |
jobs: | |
test_jerigon_native_tracer_proving: | |
name: Native tracer proof generation | |
runs-on: zero-ci | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Checkout test-jerigon-network sources | |
uses: actions/checkout@v4 | |
with: | |
repository: 0xPolygonZero/jerigon-test-network | |
ref: "feat/kurtosis-network" | |
path: jerigon-test-network | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: Install kurtosis | |
run: | | |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | |
sudo apt update | |
sudo apt install kurtosis-cli=1.3.1 | |
# It is much easier to use cast tool in scripts so install foundry | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Run cancun test network | |
run: | | |
docker pull ghcr.io/0xpolygonzero/erigon:feat-zero | |
kurtosis run --enclave cancun-testnet github.com/ethpandaops/[email protected] \ | |
--args-file jerigon-test-network/network_params.yml | |
- name: Generate blocks with transactions | |
run: | | |
ETH_RPC_URL="$(kurtosis port print cancun-testnet el-2-erigon-lighthouse ws-rpc)" | |
cast rpc eth_blockNumber --rpc-url $ETH_RPC_URL | |
cd jerigon-test-network && set -a && source .env && set +a | |
bash ./tests/generate_transactions.sh | |
- name: Run prove blocks with native tracer in test_only mode | |
run: | | |
ETH_RPC_URL="$(kurtosis port print cancun-testnet el-2-erigon-lighthouse ws-rpc)" | |
ulimit -n 8192 | |
cargo xtask prove-rpc "$ETH_RPC_URL" native test 1 -e 15 -c 0 -b 3000 -r 100 | |
echo "Proving blocks in test_only mode finished" | |
- name: Run prove blocks with native tracer in real mode | |
run: | | |
ETH_RPC_URL="$(kurtosis port print cancun-testnet el-2-erigon-lighthouse ws-rpc)" | |
rm -rf proofs/* circuits/* ./proofs.json test.out verify.out leader.out | |
cargo xtask prove-rpc "$ETH_RPC_URL" native verify 4 -e 7 -c 3 -b 3000 -r 100 | |
echo "Proving blocks in real mode finished" | |
- name: Shut down network | |
run: | | |
kurtosis enclave rm -f cancun-testnet | |
kurtosis engine stop |