feat(l2): make deposits on l2 work as expected #16
Workflow file for this run
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: L2 (SP1 Backend) | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["**"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CI_ETHREX_WORKDIR: /usr/local/bin | |
PROVER: sp1 | |
jobs: | |
test: | |
name: Integration Test | |
runs-on: gpu | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Rustup toolchain install | |
uses: dtolnay/rust-toolchain@stable | |
- name: Set up Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: "true" | |
- name: RISC-V SP1 toolchain install | |
run: | | |
. "$HOME/.cargo/env" | |
curl -L https://sp1.succinct.xyz | bash | |
~/.sp1/bin/sp1up --version 4.1.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Bake docker images | |
uses: docker/bake-action@v6 | |
with: | |
workdir: "crates/l2" | |
files: "crates/l2/docker-compose-l2.yaml" | |
load: true | |
set: | | |
*.cache-to=type=gha,mode=max | |
*.cache-from=type=gha | |
- name: Build prover | |
run: | | |
cd crates/l2 | |
make build-prover | |
- name: Build test | |
run: | | |
cargo test l2 --no-run --release | |
- name: Run test | |
run: | | |
cd crates/l2 | |
cp configs/prover_client_config_example.toml configs/prover_client_config.toml | |
cp configs/sequencer_config_docker_sp1_example.toml configs/sequencer_config.toml | |
make integration-test |