Skip to content

Commit

Permalink
CI: Checks cleanup (#1209)
Browse files Browse the repository at this point in the history
* SKIP_GUEST_BUILD in udeps

* Remove Rust toolchain from web3 tests

* Cleanup components and warning
  • Loading branch information
jfldde authored Sep 20, 2024
1 parent af71dd3 commit effa602
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
override: true
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-risczero
Expand Down Expand Up @@ -120,7 +117,6 @@ jobs:
- name: Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
override: true
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
Expand All @@ -136,10 +132,12 @@ jobs:
uses: dprint/[email protected]
- name: Run lint
run: |
if ! SKIP_GUEST_BUILD=1 make lint ; then
if ! make lint ; then
echo "Linting or formatting errors detected, please run 'make lint-fix' to fix it";
exit 1
fi
env:
SKIP_GUEST_BUILD: 1

udeps:
name: udeps
Expand Down Expand Up @@ -172,6 +170,7 @@ jobs:
- name: Run cargo-udeps
env:
RUSTFLAGS: -A warnings
SKIP_GUEST_BUILD: 1
uses: aig787/cargo-udeps-action@v1
with:
version: "latest"
Expand Down Expand Up @@ -230,7 +229,6 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 18
Expand Down Expand Up @@ -275,7 +273,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: dtolnay/[email protected]
- uses: dcarbone/install-jq-action@v2
- name: Download artifact
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -303,7 +300,6 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 18
Expand Down Expand Up @@ -368,9 +364,6 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Toolchain
uses: dtolnay/[email protected]
with:
override: true
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-risczero
Expand Down

0 comments on commit effa602

Please sign in to comment.