summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-10-28 07:23:47 (GMT)
committerGitHub <noreply@github.com>2023-10-28 07:23:47 (GMT)
commit9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5 (patch)
treeafb2bc3fde70ef7dda49096ddc77aaf8592e1c7e
parent9dc4fb820439db26b223edce30e5313a2e3182ff (diff)
downloadcpython-9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5.zip
cpython-9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5.tar.gz
cpython-9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5.tar.bz2
CI: Include Python version in cache.config key (#111410)
* Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers
-rw-r--r--.github/workflows/build.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 81e85e6..3373a06 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,7 +13,6 @@ on:
- '3.10'
- '3.9'
- '3.8'
- - '3.7'
pull_request:
branches:
- 'main'
@@ -22,7 +21,6 @@ on:
- '3.10'
- '3.9'
- '3.8'
- - '3.7'
permissions:
contents: read
@@ -128,14 +126,14 @@ jobs:
if: needs.check_source.outputs.run_tests == 'true'
steps:
- uses: actions/checkout@v4
+ - uses: actions/setup-python@v4
+ with:
+ python-version: '3.x'
- name: Restore config.cache
uses: actions/cache@v3
with:
path: config.cache
- key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
- - uses: actions/setup-python@v4
- with:
- python-version: '3.x'
+ key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
- name: Install Dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
- name: Add ccache to PATH
@@ -280,7 +278,7 @@ jobs:
- uses: actions/checkout@v4
- name: Register gcc problem matcher
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
- - name: Install Dependencies
+ - name: Install dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
- name: Configure OpenSSL env vars
run: |