Skip to content

tooling: swap out cargo-make for make #1

tooling: swap out cargo-make for make

tooling: swap out cargo-make for make #1

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
types: [opened, repoened, synchronize]
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install minimal stable with clippy
uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: stable
- name: make - clippy-all
run: make clippy-all
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install minimal nightly with rustfmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: make - format
run: make format
mkdocs:
name: build mkdocs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install minimal stable with rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: make doc-build
rustdocs:
name: build rust documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install minimal stable with rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: make doc