Skip to content

Commit 5c013ec

Browse files
committed
Temp commit with hashFiles debug information
1 parent 0bdeea0 commit 5c013ec

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build-docker.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ jobs:
8181
platform=${{ matrix.platform }}
8282
echo "PLATFORM_TUPLE=${platform//\//-}" >> $GITHUB_ENV
8383
84+
- name: Visualise cache key contents
85+
run: |
86+
# is the working directory clean?
87+
git status
88+
89+
# Run the script that the runner uses to produce the value used by `hashFiles()`
90+
# Arguments to `hashFiles` are passed in as the `patterns` environment variable
91+
# separated by newlines.
92+
export patterns=$'Dockerfile\ncrates/**\nCargo.toml\nCargo.lock'
93+
/home/runner/runners/2.321.0/externals/node20/bin/node "/home/runner/runners/2.321.0/bin/hashFiles"
94+
95+
# The number of files matches, but _one of these 644 files_ has changed, so we need to find
96+
# which one that is
97+
find Cargo.toml Cargo.lock crates -type f -exec sha256sum {} \;
98+
8499
- name: Docker apt & pip caches
85100
uses: actions/cache@v4
86101
id: docker-caches

0 commit comments

Comments
 (0)