Skip to content

cache cargo compilation in Docker #195

cache cargo compilation in Docker

cache cargo compilation in Docker #195

Workflow file for this run

name: Lint
on: push
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install toolchain
uses: actions-rs/toolchain@master
with:
toolchain: nightly
default: true
profile: minimal
components: clippy
- name: Run Clippy
run: cargo clippy --features tdlib/dox -- -D warnings
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install toolchain
uses: actions-rs/toolchain@master
with:
toolchain: nightly
default: true
profile: minimal
components: rustfmt
- name: Run Rustfmt
run: cargo fmt --check