Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: update clippy #1284

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 23 additions & 25 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Static Analysis
on: [push, workflow_dispatch]
on: [ push, workflow_dispatch ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
fmt:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, Linux, X64]
runs-on: [ self-hosted, Linux, X64 ]
steps:
- name: Checkout the source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install deps
run: sudo apt -y install protobuf-compiler
Expand All @@ -35,39 +35,37 @@ jobs:

clippy:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, Linux, X64]
runs-on: [ self-hosted, Linux, X64 ]
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Checkout the source code
uses: actions/checkout@v4

- name: Install deps
run: sudo apt -y install protobuf-compiler
- name: Install deps
run: sudo apt -y install protobuf-compiler

- name: free disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
- name: free disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean

- name: Install & display rust toolchain
run: rustup show
- name: Install & display rust toolchain
run: rustup show

- name: Check targets are installed correctly
run: rustup target list --installed
- name: Check targets are installed correctly
run: rustup target list --installed

- uses: actions-rs/clippy-check@v1
env:
SKIP_WASM_BUILD: 1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --features try-runtime,runtime-benchmarks -- -D warnings
- name: Clippy
env:
SKIP_WASM_BUILD: 1
run: cargo clippy --features evm-tracing,try-runtime,runtime-benchmarks -- -D warnings

check-license:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, Linux, X64]
runs-on: [ self-hosted, Linux, X64 ]
steps:
- name: Checkout the source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check license
uses: viperproject/check-license-header@v2
Expand Down
Loading