]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Don't restore just any cache for the Linux tests
authorTobias Brunner <tobias@strongswan.org>
Thu, 7 May 2026 15:55:18 +0000 (17:55 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 7 May 2026 16:01:30 +0000 (18:01 +0200)
If e.g. an "all" cache is restored for a "default", "apidoc" or a simple
crypto test, the cache will be a lot larger than necessary.

.github/workflows/linux.yml

index 126c57cf098ad7a88a0ffc8845e64b7526230f25..492ea9d2184db3868f9f43e7c0b92bd997ddaadd 100644 (file)
@@ -86,8 +86,6 @@ jobs:
           # files (LD itself and library.c); but different tests build different
           # dependencies, so different caches are needed
           key: ccache-ubuntu-latest-${{ env.CC }}-${{ matrix.test }}
-          restore-keys: |
-            ccache-ubuntu-latest-${{ env.CC }}-
       - run: |
           sudo apt-get install -qq ccache
           echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
@@ -158,9 +156,6 @@ jobs:
             ~/.cache/ccache
             ~/.ccache
           key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
-          restore-keys: |
-            ccache-${{ matrix.os }}-${{ env.CC }}-all
-            ccache-${{ matrix.os }}-${{ env.CC }}-
       - run: |
           sudo apt-get install -qq ccache
           echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
@@ -223,8 +218,6 @@ jobs:
             ~/.cache/ccache
             ~/.ccache
           key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
-          restore-keys: |
-            ccache-${{ matrix.os }}-${{ env.CC }}-
       - run: |
           sudo apt-get install -qq ccache
           echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV