-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: cargo check build on targets (#115)
## Overview Fixes #114
- Loading branch information
Showing
10 changed files
with
145 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: setup | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v4" | ||
- name: Install nightly toolchain | ||
shell: bash | ||
run: rustup update 1.81 && rustup default 1.81 && rustup component add rustfmt && rustup component add clippy | ||
- name: Setup Protoc | ||
uses: taiki-e/install-action@protoc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
name: rust | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
lint-celestia-prover: | ||
name: lint-celestia-prover | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up environment" | ||
uses: ./.github/setup | ||
|
||
- name: Install SP1 toolchain | ||
shell: bash | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up --version 3.4.0 --token ${{ secrets.GITHUB_TOKEN }} | ||
~/.sp1/bin/cargo-prove prove --version | ||
rustc +succinct --version | ||
- name: Run cargo fmt | ||
run: cargo fmt --check | ||
working-directory: ./provers/celestia-prover/ | ||
|
||
lint-blevm: | ||
name: lint-blevm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up environment" | ||
uses: ./.github/setup | ||
|
||
- name: Install SP1 toolchain | ||
shell: bash | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }} | ||
~/.sp1/bin/cargo-prove prove --version | ||
rustc +succinct --version | ||
- name: Run cargo fmt | ||
run: cargo fmt --check | ||
working-directory: ./provers/blevm/ | ||
|
||
build-blevm: | ||
name: build-blevm | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: "Set up environment" | ||
uses: ./.github/setup | ||
- name: Install SP1 toolchain | ||
shell: bash | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }} | ||
~/.sp1/bin/cargo-prove prove --version | ||
rustc +succinct --version | ||
- name: Build | ||
run: cargo build --release --locked | ||
working-directory: ./provers/blevm/blevm/ | ||
|
||
build-blevm-script: | ||
name: build-blevm-script | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: "Set up environment" | ||
uses: ./.github/setup | ||
- name: Install SP1 toolchain | ||
shell: bash | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }} | ||
~/.sp1/bin/cargo-prove prove --version | ||
rustc +succinct --version | ||
- name: Build | ||
run: cargo build --release --locked | ||
working-directory: ./provers/blevm/script/ | ||
|
||
build-celestia-prover: | ||
name: build-celestia-prover | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: "Set up environment" | ||
uses: ./.github/setup | ||
- name: Install SP1 toolchain | ||
shell: bash | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up --version 3.4.0 --token ${{ secrets.GITHUB_TOKEN }} | ||
~/.sp1/bin/cargo-prove prove --version | ||
rustc +succinct --version | ||
- name: Build | ||
run: cargo build --release --locked | ||
working-directory: ./provers/celestia-prover/ |
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
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
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
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
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
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
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
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