Dependencies were updated with necessary patches #30
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"] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
clippy-rustdoc: | |
name: Clippy & Rustdoc | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- x86_64-unknown-linux-gnu | |
- wasm32-unknown-unknown | |
rust: | |
- { version: stable, component: "", rustflags: "", args: "" } | |
- { | |
version: nightly, | |
component: ",rust-src", | |
flags: "-Ctarget-feature=+atomics,+bulk-memory", | |
args: "-Zbuild-std=panic_abort,std", | |
} | |
features: | |
- { features: "" } | |
- { features: --all-features } | |
include: | |
- target: x86_64-unknown-linux-gnu | |
rust: { version: stable, component: "", rustflags: "", args: "" } | |
features: { features: "" } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup toolchain install ${{ matrix.rust.version }} --profile minimal --component clippy${{ matrix.rust.component }} --allow-downgrade --target ${{ matrix.target }} | |
rustup default ${{ matrix.rust.version }} | |
- name: Run Clippy | |
env: | |
RUSTFLAGS: ${{ matrix.rust.flags }} | |
run: | |
cargo clippy --all-targets ${{ matrix.features.features }} --target ${{ matrix.target }} | |
${{ matrix.rust.args }} -- -D warnings | |
- name: Run Rustdoc | |
env: | |
RUSTDOCFLAGS: -D warnings ${{ matrix.rust.flags }} | |
run: | |
cargo doc --no-deps --document-private-items ${{ matrix.features.features }} --target ${{ | |
matrix.target }} ${{ matrix.rust.args }} |