Skip to content

Commit 8e0c921

Browse files
encukouhugovk
andauthored
[3.11] gh-113858: GH Actions: Make ccache smaller (GH-114082) (#114188)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 6742445 commit 8e0c921

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ jobs:
156156
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
157157
- name: Configure ccache action
158158
uses: hendrikmuhs/[email protected]
159+
with:
160+
save: false
159161
- name: Check Autoconf version 2.69 and aclocal 1.16.3
160162
run: |
161163
grep "Generated by GNU Autoconf 2.69" configure
@@ -266,6 +268,8 @@ jobs:
266268
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
267269
- name: Configure ccache action
268270
uses: hendrikmuhs/[email protected]
271+
with:
272+
save: false
269273
- name: Configure CPython
270274
run: ./configure --config-cache --with-pydebug --with-openssl=$OPENSSL_DIR
271275
- name: Build CPython
@@ -319,6 +323,9 @@ jobs:
319323
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
320324
- name: Configure ccache action
321325
uses: hendrikmuhs/[email protected]
326+
with:
327+
save: ${{ github.event_name == 'push' }}
328+
max-size: "200M"
322329
- name: Configure CPython
323330
run: ./configure --config-cache --with-address-sanitizer --without-pymalloc
324331
- name: Build CPython

.github/workflows/reusable-ubuntu.yml

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
4242
- name: Configure ccache action
4343
uses: hendrikmuhs/[email protected]
44+
with:
45+
save: ${{ github.event_name == 'push' }}
46+
max-size: "200M"
4447
- name: Setup directory envs for out-of-tree builds
4548
run: |
4649
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)