ci(lint): stop linting with nightly

This commit is contained in:
Christian Clason 2025-06-26 14:34:18 +02:00 committed by Christian Clason
parent 462fcd7c30
commit 2bc8aa939f
3 changed files with 4 additions and 21 deletions

View file

@ -34,22 +34,11 @@ jobs:
toolchain: stable
components: clippy, rustfmt
- name: Set up nightly Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
- name: Lint files
run: |
make lint
make lint-web
- name: Lint files (Rust nightly)
continue-on-error: true
run: |
make lint-nightly
sanitize:
uses: ./.github/workflows/sanitize.yml

View file

@ -106,21 +106,15 @@ test-wasm:
lint:
cargo update --workspace --locked --quiet
cargo check --workspace --all-targets
cargo +nightly fmt --all --check
cargo +stable clippy --workspace --all-targets -- -D warnings
lint-nightly:
cargo update --workspace --locked --quiet
cargo check --workspace --all-targets
cargo +nightly fmt --all --check
cargo +nightly clippy --workspace --all-targets -- -D warnings
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
lint-web:
npm --prefix lib/binding_web ci
npm --prefix lib/binding_web run lint
format:
cargo +nightly fmt --all
cargo fmt --all
changelog:
@git-cliff --config .github/cliff.toml --prepend CHANGELOG.md --latest --github-token $(shell gh auth token)

View file

@ -6,7 +6,7 @@ use crate::{bail_on_err, Clippy};
pub fn run(args: &Clippy) -> Result<()> {
let mut clippy_command = Command::new("cargo");
clippy_command.arg("+nightly").arg("clippy");
clippy_command.arg("clippy");
if let Some(package) = args.package.as_ref() {
clippy_command.args(["--package", package]);