Skip to content

Fix committee selection on small node counts #804

Fix committee selection on small node counts

Fix committee selection on small node counts #804

Workflow file for this run

name: Lints
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths-ignore:
- '*.md'
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cargo Format
run: cargo fmt --check
clippy:
name: Clippy
needs: fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Rust Cache (custom)
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/registry/src/**/librocksdb-sys-*
~/.cargo/git/db/
target/
key: custom-rust-clippy-${{ hashFiles('**/Cargo.lock') }}
restore-keys: custom-rust-clippy-
- name: Cargo Clippy
run: cargo clippy --all-features --all-targets --timings -- -Dclippy::all -Dwarnings
- name: Upload Timings
uses: actions/upload-artifact@v3
with:
path: target/cargo-timings/cargo-timing.html