Fixes after sequencer update #599
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
tags: | |
# YYYYMMDD | |
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*" | |
pull_request: | |
branches: | |
workflow_dispatch: | |
env: | |
RUST_LOG: info,libp2p=off | |
RUSTFLAGS: "--cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\"" | |
ESPRESSO_DISABLE_TIMING_BASED_TESTS_FOR_CI: 'true' | |
jobs: | |
docker-rust: | |
uses: ./.github/workflows/build_static.yml | |
secrets: inherit | |
build: | |
needs: [docker-rust] | |
# The tests that use docker compose currently only work on github's | |
# public runners. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check /proc/cpuinfo | |
run: cat /proc/cpuinfo | |
- name: Abort early if Intel ADX instructions (required by zkevm-prover) is not available | |
run: cat /proc/cpuinfo | grep -q ' adx ' || ( echo "Retry CI in the hopes of getting another CPU" && exit 1 ) | |
- name: Install protoc | |
run: sudo apt-get install -y protobuf-compiler | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- uses: styfle/[email protected] | |
name: Cancel Outdated Builds | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v3 | |
name: Checkout Repository | |
with: | |
submodules: true | |
- name: Login to Github Container Repo | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Pull Docker images built by other repos. | |
- name: Pull remote Docker images | |
run: docker compose -f standalone-docker-compose.yaml -f docker-compose-anvil.yaml pull | |
# The tests in this repo use Docker images built from the code in this repo. Since workflow | |
# runs in this repo may encompass code changes that would affect these images, we need to make | |
# sure the images are built before running the tests, and that the tests reference the correct | |
# images. | |
# | |
# The images for this branch were built in the previous job `docker-rust`. Pull them, and for | |
# each one, create a local tag `main` referencing the pulled image. | |
- name: Pull local Docker images | |
run: | | |
docker pull ${{ needs.docker-rust.outputs.zkevm-adaptor-tag }} | |
docker tag ${{ needs.docker-rust.outputs.zkevm-adaptor-tag }} \ | |
ghcr.io/espressosystems/espresso-polygon-zkevm-demo/polygon-zkevm-adaptor:main | |
- uses: Swatinem/rust-cache@v2 | |
name: Enable Rust Caching | |
- name: Build | |
run: | | |
cargo build --release --workspace | |
- name: Test | |
run: | | |
cargo test --release --workspace --features testing --no-run | |
cargo test --release --workspace --features testing --verbose -- --test-threads 1 --nocapture | |
timeout-minutes: 30 |