From 560326c2c44dd7dd5d69cc097bbb5e5405fc7150 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 31 Oct 2022 10:47:06 +0100 Subject: [PATCH] ci: Rebuild xtask when workspace Cargo.toml changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … because dependencies from `[workspace.dependencies]` can affect it. --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b1cc7f5..064c9b49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: id: xtask-cache with: path: target/debug/xtask - key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }} + key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }} - name: Install rust stable toolchain if: steps.xtask-cache.outputs.cache-hit != 'true' @@ -67,7 +67,7 @@ jobs: uses: actions/cache@v3 with: path: target/debug/xtask - key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }} + key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }} - name: Run lints run: target/debug/xtask ci lint @@ -123,7 +123,7 @@ jobs: uses: actions/cache@v3 with: path: target/debug/xtask - key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }} + key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }} - name: Run checks run: target/debug/xtask ci ${{ matrix.cmd }} @@ -170,7 +170,7 @@ jobs: uses: actions/cache@v3 with: path: target/debug/xtask - key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }} + key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }} - name: Run checks run: target/debug/xtask ci ${{ matrix.cmd }} @@ -218,7 +218,7 @@ jobs: uses: actions/cache@v3 with: path: target/debug/xtask - key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }} + key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }} - name: Run checks run: target/debug/xtask ci ${{ matrix.cmd }} @@ -245,7 +245,7 @@ jobs: uses: actions/cache@v3 with: path: target/debug/xtask - key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }} + key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }} - name: Build docs run: target/debug/xtask doc --deny-warnings