-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(clippy): install tools before running clippy
- Loading branch information
1 parent
37efcff
commit 4e163f4
Showing
3 changed files
with
50 additions
and
49 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 |
---|---|---|
@@ -1,56 +1,56 @@ | ||
name: CI Build and Test - Reusable | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version_name: | ||
type: string | ||
required: true | ||
version_toolchain: | ||
type: string | ||
required: true | ||
workflow_call: | ||
inputs: | ||
version_name: | ||
type: string | ||
required: true | ||
version_toolchain: | ||
type: string | ||
required: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build-test: | ||
name: Build and test | ||
runs-on: [taiko-runner] | ||
timeout-minutes: 120 | ||
|
||
env: | ||
TARGET: ${{ inputs.version_name}} | ||
CI: 1 | ||
MOCK: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ inputs.version_toolchain }} | ||
profile: minimal | ||
- name: Install cargo-binstall | ||
uses: cargo-bins/[email protected] | ||
- name: Setup sccache | ||
if: ${{ inputs.version_name }} == risc0 | ||
uses: risc0/risc0/.github/actions/[email protected] | ||
- name: Install ${{ inputs.version_name }} | ||
run: make install | ||
- name: Build ${{ inputs.version_name }} prover | ||
run: make build | ||
- name: Test ${{ inputs.version_name }} prover | ||
run: make test | ||
- name: Build with tracer | ||
if: ${{ inputs.version_name }} == native | ||
run: cargo build -F tracer | ||
build-test: | ||
name: Build and test | ||
runs-on: [taiko-runner] | ||
timeout-minutes: 120 | ||
|
||
env: | ||
TARGET: ${{ inputs.version_name }} | ||
CI: 1 | ||
MOCK: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ inputs.version_toolchain }} | ||
profile: minimal | ||
|
||
- name: Install cargo-binstall | ||
uses: cargo-bins/[email protected] | ||
|
||
- name: Setup sccache | ||
if: ${{ inputs.version_name }} == risc0 | ||
uses: risc0/risc0/.github/actions/[email protected] | ||
|
||
- name: Install ${{ inputs.version_name }} | ||
run: make install | ||
|
||
- name: Build ${{ inputs.version_name }} prover | ||
run: make build | ||
|
||
- name: Test ${{ inputs.version_name }} prover | ||
run: make test | ||
|
||
- name: Build with tracer | ||
if: ${{ inputs.version_name }} == native | ||
run: cargo build -F tracer |
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 |
---|---|---|
|
@@ -16,4 +16,5 @@ fmt: | |
@cargo fmt --all --check | ||
|
||
clippy: | ||
./script/install.sh $(TARGET) | ||
./script/clippy.sh $(TARGET) |
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