8000 gh-115383: Use runner version to compute config cache key · python/cpython@06b31ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 06b31ef

Browse files
committed
gh-115383: Use runner version to compute config cache key
Our GitHub actions build caches the results of "configure" on macOS and Linux. Periodically, GitHub releases new images for their actions runners. This incorporates the runner's OS and image version to compute the config cache key to avoid using a stale configure E4B6 cache.
1 parent 5719aa2 commit 06b31ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ jobs:
9393
- name: Compute hash for config cache key
9494
id: config_hash
9595
run: |
96-
echo "hash=${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml') }}" >> $GITHUB_OUTPUT
96+
echo "ImageOS=${ImageOS}" >> .github/environment.txt
97+
echo "ImageVersion=${ImageVersion}" >> .github/environment.txt
98+
echo "hash=${{ hashFiles('configure', 'configure.ac', '.github/workflows/build.yml', '.github/environment.txt') }}" >> $GITHUB_OUTPUT
9799
- name: Get a list of the changed documentation-related files
98100
if: github.event_name == 'pull_request'
99101
id: changed-docs-files

0 commit comments

Comments
 (0)
0