Skip to content

bump zkvm version to 1.1.1 #119

bump zkvm version to 1.1.1

bump zkvm version to 1.1.1 #119

Workflow file for this run

permissions:
contents: read
# This configuration allows maintainers of this repo to create a branch and pull request based on
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets
# built once.
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RISC0_TOOLCHAIN_VERSION: v2024-04-22.0
RISC0_MONOREPO_REF: "release-1.0"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full history is required by license-check.py
fetch-depth: 0
submodules: recursive
- uses: risc0/risc0/.github/actions/rustup@main
- name: Install cargo-sort
uses: risc0/cargo-install@b9307573043522ab0d3e3be64a51763b765b52a4
with:
crate: cargo-sort
version: "1.0"
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: risc0/foundry-toolchain@2fe7e70b520f62368a0e3c464f997df07ede420f
- run: cargo fmt --all --check
- run: cargo sort --workspace --check
- run: cargo clippy -p blobstream0-primitives
- run: forge fmt --check
working-directory: contracts
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: python license-check.py
- name: check for "D0 NOT MERGE" comments
run: |
[ "$(grep -re 'DO[_ ]\?NOT[_ ]\?MERGE' $(git ls-tree --full-tree --name-only -r HEAD) | tee /dev/fd/2 | wc -l)" -eq "0" ]
test:
runs-on: ubuntu-latest
steps:
# This is a workaround from: https://github.com/actions/checkout/issues/590#issuecomment-970586842
- name: checkout dummy commit (submodule bug workaround)
run: "git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :"
- name: clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install rust
uses: risc0/risc0/.github/actions/rustup@main
- name: Install Foundry
uses: risc0/foundry-toolchain@2fe7e70b520f62368a0e3c464f997df07ede420f
- name: risczero toolchain install
run: |
cargo install cargo-binstall --version '=1.6.9' --locked
cargo binstall cargo-risczero@1.1.1 --no-confirm --force
cargo risczero install
# uses: risc0/risc0-ethereum/.github/actions/cargo-risczero-install@release-1.0
# with:
# ref: ${{ env.RISC0_MONOREPO_REF }}
- name: cargo check to build autogenerated files
run: cargo check
# Note: check above should rebuild contracts
# - name: build solidity contracts
# run: forge build
# working-directory: contracts
- name: run tests
run: cargo test
# - name: run foundry tests in dev mode
# env:
# RISC0_DEV_MODE: true
# run: forge test -vvv
# working-directory: contracts