Skip to content

Circuit

Circuit #306

Workflow file for this run

name: Rust
on:
# Run CI on push only for 'main' branch
push:
branches: [ master ]
# Run CI on pull request for all branches
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-D warnings'
RUST_BACKTRACE: 1
jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: Format
run: cargo fmt --all --check
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Build
run: cargo build --verbose --workspace --exclude evm-vrfier
build-wasm32:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
- name: Build
run: cargo build --verbose --no-default-features --target wasm32-unknown-unknown --workspace --exclude evm-vrfier
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Run tests
run: cargo test --release --workspace --exclude evm-vrfier
# Disabled: alloy-consensus 0.14 is incompatible with current serde (missing serde::__private).
# Re-enable after upgrading evm-vrfier's alloy dependency.
# test-foundry:
# runs-on: ubuntu-latest
# timeout-minutes: 5
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
#
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
#
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
#
# - name: Run Foundry tests
# run: cargo test --release --package evm-vrfier