Skip to content

Commit 78426cd

Browse files
committed
Include Rust version in rewatch build cache key
1 parent e7b59cd commit 78426cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ jobs:
106106
packages: bubblewrap darcs g++-multilib gcc-multilib mercurial musl-tools rsync
107107
version: v3
108108

109-
- name: Restore rewatch build cache
110-
id: rewatch-build-cache
111-
uses: actions/cache@v4
112-
with:
113-
path: rewatch/target
114-
key: rewatch-build-v3-${{ matrix.rust-target }}-${{ hashFiles('rewatch/src/**', 'rewatch/Cargo.lock') }}
115-
116109
- name: Determine Rust toolchain version
117110
id: rust-version
118111
shell: bash
@@ -124,6 +117,13 @@ jobs:
124117
fi
125118
echo "version=${version}" >> "$GITHUB_OUTPUT"
126119
120+
- name: Restore rewatch build cache
121+
id: rewatch-build-cache
122+
uses: actions/cache@v4
123+
with:
124+
path: rewatch/target
125+
key: rewatch-build-v3-${{ steps.rust-version.outputs.version }}-${{ matrix.rust-target }}-${{ hashFiles('rewatch/src/**', 'rewatch/Cargo.lock') }}
126+
127127
- name: Install rust toolchain
128128
if: steps.rewatch-build-cache.outputs.cache-hit != 'true'
129129
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)