Skip to content

Prepare release 4.4.0 #1843

Prepare release 4.4.0

Prepare release 4.4.0 #1843

Workflow file for this run

name: Cargo fmt & clippy
on:
pull_request:
push:
branches: [master, develop]
env:
CARGO_TERM_COLOR: always
jobs:
static_analysis:
runs-on: ubuntu-22.04
steps:
# v4.1.1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: 'true'
- uses: arduino/setup-protoc@v3
- name: Clean unused cache
run: |
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
# v2.7.1
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8
with:
# 20GB of cache per repo per week
cache-provider: "buildjet"
# latest v2
- name: cargo install
uses: taiki-e/install-action@v2
with:
tool: clippy-sarif, sarif-fmt
- name: cargo fmt
run: cargo fmt --check
- name: cargo clippy
env:
SKIP_WASM_BUILD: 1
run: cargo clippy --all-targets --features private-net,stage,wip,runtime-benchmarks
--message-format=json -- -D warnings | clippy-sarif | tee results.sarif | sarif-fmt
shell: bash
- name: Upload SARIF file
if: always()
# v2.24.2
uses: github/codeql-action/upload-sarif@49abf0ba24d0b7953cb586944e918a0b92074c80
with:
sarif_file: results.sarif