refactor: split cli and client into workspace #213
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [main, next] | |
pull_request: | |
types: [opened, repoened, synchronize] | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install Rust with clippy | |
run: | | |
rustup update --no-self-update nightly | |
rustup +nightly component add clippy | |
- name: make - clippy | |
run: make clippy | |
rustfmt: | |
name: rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install Rust with rustfmt | |
run: | | |
rustup update --no-self-update nightly | |
rustup +nightly component add rustfmt | |
- name: make - format-check | |
run: make format-check | |
mkdocs: | |
name: build mkdocs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- 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@main | |
- name: Install Rust | |
run: rustup update --no-self-update | |
- name: make - doc | |
run: make doc |