This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Move git dependencies to [patch.crates-io]
section (#12)
#67
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: Rust | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "ibc-rollup" ] | |
pull_request: | |
branches: [ "ibc-rollup" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SOVEREIGN_SDK_PRIVATE_SSH_KEY }} | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
ssh-key: ${{ secrets.SOVEREIGN_SDK_PRIVATE_SSH_KEY }} | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
version: "23.2" | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-risczero | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Install risc0-zkvm toolchain # Use the risc0 cargo extension to install the risc0 std library for the current toolchain | |
run: cargo risczero install --version v2024-02-08.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test | |
- name: Run README.md | |
run: chmod +x sov-rollup-starter.sh && ./sov-rollup-starter.sh |