Build blocks using Reth 1.1.0 #467
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
# this is needed to gain access via OIDC to the S3 bucket for caching | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RISC0_VERSION: "v1.1.2" | |
RISC0_TOOLCHAIN_VERSION: r0.1.81.0-rc.6 | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: risc0/risc0/.github/actions/[email protected] | |
- uses: risc0/risc0/.github/actions/[email protected] | |
- uses: risc0/cargo-install@v1 | |
with: | |
crate: cargo-binstall | |
- run: curl -L https://risczero.com/install | bash | |
shell: bash | |
- run: rzup install cargo-risczero $RISC0_VERSION | |
shell: bash | |
- run: rzup toolchain install rust $RISC0_TOOLCHAIN_VERSION | |
shell: bash | |
- run: rzup toolchain install cpp | |
shell: bash | |
# - run: cargo binstall -y --force cargo-risczero@$RISC0_VERSION | |
# - run: cargo risczero build-toolchain --version $RISC0_TOOLCHAIN_VERSION | |
# - run: cargo risczero install --version $RISC0_TOOLCHAIN_VERSION | |
- run: cargo test --workspace --all-targets -F debug-guest-build | |
clippy: | |
name: clippy | |
runs-on: [self-hosted, prod, "${{ matrix.os }}"] | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: Linux | |
feature: default | |
- os: Linux | |
feature: cuda | |
- os: macOS | |
feature: default | |
- os: macOS | |
feature: metal | |
env: | |
FEATURE: ${{ matrix.feature }} | |
RISC0_SKIP_BUILD: 1 | |
RISC0_SKIP_BUILD_KERNELS: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- if: matrix.feature == 'cuda' | |
uses: risc0/risc0/.github/actions/[email protected] | |
- uses: risc0/risc0/.github/actions/[email protected] | |
- uses: risc0/risc0/.github/actions/[email protected] | |
- uses: risc0/clippy-action@main | |
with: | |
reporter: 'github-pr-check' | |
fail_on_error: true | |
clippy_flags: -F $FEATURE --workspace --all-targets -- -Dwarnings | |
fmt: | |
name: fmt | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: risc0/risc0/.github/actions/[email protected] | |
- run: cargo fmt --all --check |