Skip to content

chore/bump-new-version-to-2.2.0 (#104) #196

chore/bump-new-version-to-2.2.0 (#104)

chore/bump-new-version-to-2.2.0 (#104) #196

Workflow file for this run

name: Rust checks
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check-format-and-lint:
name: Check & Lint
runs-on: ubuntu-22.04-8core
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
run: |
rustup update stable
rustup default stable
rustup component add rustfmt clippy
- name: Check code formatting
run: cargo fmt --all -- --check
- name: Lint with clippy
run: cargo clippy -- -D warnings
cargo-check:
name: Cargo Check
runs-on: ubuntu-22.04-8core
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
run: |
rustup update stable
rustup default stable
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cargo Check
run: cargo check --all