From a7ed4ebc9710262c8764a9e1ac2f1603c08cf540 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 19 Nov 2020 16:40:14 +0100 Subject: [PATCH] CI: split clippy jobs as we can't run clippy with --all-features & we can't specify --features at workspace level, workaround it for now till we can re-use --all-features again --- .github/workflows/CI.yml | 58 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c8cf4cf773d0..1ad63115ebbd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -235,13 +235,61 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: stable override: true - run: rustup component add clippy - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-features --all-targets -- -D warnings + + - working-directory: atk + name: atk + run: cargo clippy --features "v2_34" --all-targets -- -D warnings + + - working-directory: cairo + name: cairo + run: cargo clippy --features "cairo/png,pdf,svg,ps,use_glib,v1_16,freetype,script,xcb,xlib,win32-surface" --all-targets -- -D warnings + + - working-directory: examples + name: examples + run: cargo clippy --all-features --all-targets -- -D warnings + + - working-directory: gdk + name: gdk + run: cargo clippy --features "v3_24" --all-targets -- -D warnings + + - working-directory: gdk-pixbuf + name: gdk-pixbuf + run: cargo clippy --features "v2_40" --all-targets -- -D warnings + + - working-directory: gdkx11 + name: gdkx11 + run: cargo clippy --features "v3_24" --all-targets -- -D warnings + + - working-directory: gio + name: gio + run: cargo clippy --features "v2_66" --all-targets -- -D warnings + + - working-directory: glib + name: glib + run: cargo clippy --features "v2_66" --all-targets -- -D warnings + + - working-directory: glib-macros + name: glib-macros + run: cargo clippy --all-targets -- -D warnings + + - working-directory: graphene + name: graphene + run: cargo clippy --features "v1_10" --all-targets -- -D warnings + + - working-directory: gtk + name: gtk + run: cargo clippy --features "v3_24_9" --all-targets -- -D warnings + + - working-directory: pango + name: pango + run: cargo clippy --features "v1_46" --all-targets -- -D warnings + + - working-directory: pangocairo + name: pangocairo + run: cargo clippy --all-targets -- -D warnings checker: name: gtk-rs checker