]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-113858: GH Actions: Make ccache smaller (GH-114082) (#114188)
authorPetr Viktorin <encukou@gmail.com>
Wed, 17 Jan 2024 16:06:52 +0000 (17:06 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 16:06:52 +0000 (16:06 +0000)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
.github/workflows/build.yml
.github/workflows/reusable-ubuntu.yml

index ad9ec980a9540aee5a4ba0d8aa13b8ea92f14df7..080eeeedb450cfedd1011b8e0f7c3b422040f3dd 100644 (file)
@@ -156,6 +156,8 @@ jobs:
         run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
       - name: Configure ccache action
         uses: hendrikmuhs/ccache-action@v1.2
+        with:
+          save: false
       - name: Check Autoconf version 2.69 and aclocal 1.16.3
         run: |
           grep "Generated by GNU Autoconf 2.69" configure
@@ -266,6 +268,8 @@ jobs:
         echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
     - name: Configure ccache action
       uses: hendrikmuhs/ccache-action@v1.2
+      with:
+        save: false
     - name: Configure CPython
       run: ./configure --config-cache --with-pydebug --with-openssl=$OPENSSL_DIR
     - name: Build CPython
@@ -319,6 +323,9 @@ jobs:
         echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
     - name: Configure ccache action
       uses: hendrikmuhs/ccache-action@v1.2
+      with:
+        save: ${{ github.event_name == 'push' }}
+        max-size: "200M"
     - name: Configure CPython
       run: ./configure --config-cache --with-address-sanitizer --without-pymalloc
     - name: Build CPython
index 56268c8bfd3419ee270fe1264e43667c008ca5d9..db4ca4d4667399158757179d25f62db85bd84164 100644 (file)
@@ -41,6 +41,9 @@ jobs:
         echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
     - name: Configure ccache action
       uses: hendrikmuhs/ccache-action@v1.2
+      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