Bump actions/cache from 3.3.1 to 3.3.2 #493
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 | |
jobs: | |
build: | |
# 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 | |
# if: github.event_name != 'pull_request' | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Pull all docker compose images | |
run: docker-compose -f docker-compose.yaml -f docker-compose-anvil.yaml -f permissionless-docker-compose.yaml pull | |
- uses: Swatinem/rust-cache@v2 | |
name: Enable Rust Caching | |
- name: Build | |
run: | | |
cargo build --release --workspace | |
- name: Test | |
run: | | |
cargo test --release --workspace --all-features --no-run | |
cargo test --release --workspace --all-features --verbose -- --test-threads 1 --nocapture | |
timeout-minutes: 30 |