Disable pictrs feature in CI to make it faster (#2698)

notify_tag_success
Nutomic 2023-02-04 03:32:44 +09:00 committed by GitHub
parent 5ae409d4e4
commit 4dddc3f717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 22 deletions

View File

@ -29,26 +29,8 @@ steps:
- rustup component add rustfmt --toolchain nightly - rustup component add rustfmt --toolchain nightly
- cargo +nightly fmt -- --check - cargo +nightly fmt -- --check
# check each package to make sure they compile with default features.
- name: cargo clippy # this is required for crates.io
image: clux/muslrust:1.67.0
environment:
CARGO_HOME: .cargo
commands:
# latest rust for clippy to get extra checks
# when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh
- rustup component add clippy
- cargo clippy --workspace --tests --all-targets --all-features --
-D warnings -D deprecated -D clippy::perf -D clippy::complexity
-D clippy::style -D clippy::correctness -D clippy::suspicious
-D clippy::dbg_macro -D clippy::inefficient_to_string
-D clippy::items-after-statements -D clippy::implicit_clone
-D clippy::wildcard_imports -D clippy::cast_lossless
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls
-D clippy::unused_self
-A clippy::uninlined_format_args
- cargo clippy --workspace --all-features -- -D clippy::unwrap_used
- name: cargo check - name: cargo check
image: clux/muslrust:1.67.0 image: clux/muslrust:1.67.0
environment: environment:
@ -64,8 +46,29 @@ steps:
- cargo check --package lemmy_api_crud - cargo check --package lemmy_api_crud
- cargo check --package lemmy_apub - cargo check --package lemmy_apub
- cargo check --package lemmy_routes - cargo check --package lemmy_routes
- cargo check --workspace --no-default-features - cargo check --workspace
- cargo check --workspace --all-features - cargo check --workspace --features console
# disabled because it takes too long with pict-rs
#- cargo check --workspace --all-features
- name: cargo clippy
image: clux/muslrust:1.67.0
environment:
CARGO_HOME: .cargo
commands:
# latest rust for clippy to get extra checks
# when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh
- rustup component add clippy
- cargo clippy --workspace --tests --all-targets --features console --
-D warnings -D deprecated -D clippy::perf -D clippy::complexity
-D clippy::style -D clippy::correctness -D clippy::suspicious
-D clippy::dbg_macro -D clippy::inefficient_to_string
-D clippy::items-after-statements -D clippy::implicit_clone
-D clippy::wildcard_imports -D clippy::cast_lossless
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls
-D clippy::unused_self
-A clippy::uninlined_format_args
- cargo clippy --workspace --features console -- -D clippy::unwrap_used
- name: lemmy_api_common doesnt depend on diesel - name: lemmy_api_common doesnt depend on diesel
image: clux/muslrust:1.67.0 image: clux/muslrust:1.67.0