Commit 9854392a1f for strongswan.org
commit 9854392a1f9366d2634339fcb74a75aade2b84bb
Author: Tobias Brunner <tobias@strongswan.org>
Date: Thu May 7 17:55:18 2026 +0200
github: Don't restore just any cache for the Linux tests
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.
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 126c57cf09..492ea9d218 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -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