gh-115383: Use runner version to compute config.cache key · python/cpython@cb945c2 · GitHub
Skip to content

Commit cb945c2

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 restore key to avoid using a stale configure cache.
1 parent 5719aa2 commit cb945c2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions

.github/workflows/reusable-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/cache@v4
3333
with:
3434
path: config.cache
35-
key: ${{ github.job }}-${{ matrix.os }}-${{ inputs.config_hash }}
35+
key: ${{ github.job }}-${{ matrix.os }}-${{ inputs.config_hash }}-${{ env.ImageVersion }}
3636
- name: Install Homebrew dependencies
3737
run: brew install pkg-config openssl@3.0 xz gdbm tcl-tk
3838
- name: Configure CPython

.github/workflows/reusable-ubuntu.yml

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)