https://github.com/python/cpython/commit/fcb4c8d31a4b1c60ed9990db3eacd1db9cac4df2
commit: fcb4c8d31a4b1c60ed9990db3eacd1db9cac4df2
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2024-01-12T10:48:25+01:00
summary:
gh-113858: Cut down ccache size (GH-113945)
Cut down ccache size
- Only save the ccache in the main reusable builds, not on builds that
don't use special build options:
- Generated files check
- OpenSSL tests
- Hypothesis tests
- Halve the max cache size, to 200M
files:
M .github/workflows/build.yml
M .github/workflows/reusable-ubuntu.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a3b1d7786ee914..957882619f3552 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -143,7 +143,7 @@ jobs:
- name: Configure ccache action
uses: hendrikmuhs/[email protected]
with:
- save: ${{ github.event_name == 'push' }}
+ save: false
- name: Check Autoconf and aclocal versions
run: |
grep "Generated by GNU Autoconf 2.71" configure
@@ -287,7 +287,7 @@ jobs:
- name: Configure ccache action
uses: hendrikmuhs/[email protected]
with:
- save: ${{ github.event_name == 'push' }}
+ save: false
- name: Configure CPython
run: ./configure --config-cache --with-pydebug
--with-openssl=$OPENSSL_DIR
- name: Build CPython
@@ -332,7 +332,7 @@ jobs:
- name: Configure ccache action
uses: hendrikmuhs/[email protected]
with:
- save: ${{ github.event_name == 'push' }}
+ save: false
- name: Setup directory envs for out-of-tree builds
run: |
echo "CPYTHON_RO_SRCDIR=$(realpath -m
${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
diff --git a/.github/workflows/reusable-ubuntu.yml
b/.github/workflows/reusable-ubuntu.yml
index f208064767d42f..c2194280c0a50f 100644
--- a/.github/workflows/reusable-ubuntu.yml
+++ b/.github/workflows/reusable-ubuntu.yml
@@ -43,6 +43,7 @@ jobs:
uses: hendrikmuhs/[email protected]
with:
save: ${{ github.event_name == 'push' }}
+ max-size: "200M"
- name: Setup directory envs for out-of-tree builds
run: |
echo "CPYTHON_RO_SRCDIR=$(realpath -m
${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]