From aa69af6efcd14e52ffbdaf1e2f1b8728d807339d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Wed, 22 Nov 2023 10:24:42 +0100 Subject: [PATCH] Use matrix to reduce duplication. --- .github/workflows/build-test-sources.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-test-sources.yaml b/.github/workflows/build-test-sources.yaml index 58e670bb3..a61c546be 100644 --- a/.github/workflows/build-test-sources.yaml +++ b/.github/workflows/build-test-sources.yaml @@ -59,6 +59,12 @@ jobs: matrix: plan: - rust: "nightly-2023-04-01-x86_64-unknown-linux-gnu" + crates: + - rust-src + - rust-bins + - idiss + - mobile_wallet + - identity-provider-service steps: - name: Checkout @@ -70,11 +76,7 @@ jobs: run: | rustup default ${{ matrix.plan.rust }} rustup component add rustfmt - cargo fmt --manifest-path rust-src/Cargo.toml --all -- --check - cargo fmt --manifest-path rust-bins/Cargo.toml -- --check - cargo fmt --manifest-path idiss/Cargo.toml -- --check - cargo fmt --manifest-path mobile_wallet/Cargo.toml -- --check - cargo fmt --manifest-path identity-provider-service/Cargo.toml -- --check + cargo fmt --manifest-path ${{ matrix.crates }}/Cargo.toml --all -- --check rustdoc: runs-on: ubuntu-latest