Skip to content

Commit ed9c72b

Browse files
encukouaisk
authored andcommitted
pythongh-113858: Cut down ccache size (pythonGH-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
1 parent 4029459 commit ed9c72b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
- name: Configure ccache action
144144
uses: hendrikmuhs/[email protected]
145145
with:
146-
save: ${{ github.event_name == 'push' }}
146+
save: false
147147
- name: Check Autoconf and aclocal versions
148148
run: |
149149
grep "Generated by GNU Autoconf 2.71" configure
@@ -287,7 +287,7 @@ jobs:
287287
- name: Configure ccache action
288288
uses: hendrikmuhs/[email protected]
289289
with:
290-
save: ${{ github.event_name == 'push' }}
290+
save: false
291291
- name: Configure CPython
292292
run: ./configure --config-cache --with-pydebug --with-openssl=$OPENSSL_DIR
293293
- name: Build CPython
@@ -332,7 +332,7 @@ jobs:
332332
- name: Configure ccache action
333333
uses: hendrikmuhs/[email protected]
334334
with:
335-
save: ${{ github.event_name == 'push' }}
335+
save: false
336336
- name: Setup directory envs for out-of-tree builds
337337
run: |
338338
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV

.github/workflows/reusable-ubuntu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
uses: hendrikmuhs/[email protected]
4444
with:
4545
save: ${{ github.event_name == 'push' }}
46+
max-size: "200M"
4647
- name: Setup directory envs for out-of-tree builds
4748
run: |
4849
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)