Add borsh
support
#1092
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
name: Clippy | |
env: | |
CARGO_TERM_COLOR: "always" | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
fmt: | |
name: cargo fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout compact_str | |
- name: Install toolchain | |
run: | | |
rustup toolchain install nightly --no-self-update --profile minimal --component rustfmt | |
rustup override set nightly | |
- name: Run rustfmt Workspace | |
run: cargo fmt --all -- --check | |
- name: Run rustfmt compact_str | |
run: cargo fmt --all --manifest-path compact_str/Cargo.toml -- --check | |
clippy: | |
name: cargo clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout compact_str | |
- name: Install toolchain | |
run: | | |
rustup toolchain install nightly --no-self-update --profile minimal --component clippy | |
rustup override set nightly | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run clippy Workspace | |
run: cargo clippy --no-deps --tests | |
- name: Run clippy compact_str | |
run: cargo clippy --no-deps --tests --manifest-path compact_str/Cargo.toml | |
doc: | |
name: cargo doc | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: "-D warnings --cfg docsrs" | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout compact_str | |
- name: Install toolchain | |
run: | | |
rustup toolchain install nightly --no-self-update --profile minimal | |
rustup override set nightly | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run rustdoc | |
run: cargo doc --all-features --no-deps --manifest-path compact_str/Cargo.toml |