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.
This commit is contained in:
@@ -86,8 +86,6 @@ jobs:
|
|||||||
# files (LD itself and library.c); but different tests build different
|
# files (LD itself and library.c); but different tests build different
|
||||||
# dependencies, so different caches are needed
|
# dependencies, so different caches are needed
|
||||||
key: ccache-ubuntu-latest-${{ env.CC }}-${{ matrix.test }}
|
key: ccache-ubuntu-latest-${{ env.CC }}-${{ matrix.test }}
|
||||||
restore-keys: |
|
|
||||||
ccache-ubuntu-latest-${{ env.CC }}-
|
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get install -qq ccache
|
sudo apt-get install -qq ccache
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
@@ -158,9 +156,6 @@ jobs:
|
|||||||
~/.cache/ccache
|
~/.cache/ccache
|
||||||
~/.ccache
|
~/.ccache
|
||||||
key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
|
key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
|
||||||
restore-keys: |
|
|
||||||
ccache-${{ matrix.os }}-${{ env.CC }}-all
|
|
||||||
ccache-${{ matrix.os }}-${{ env.CC }}-
|
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get install -qq ccache
|
sudo apt-get install -qq ccache
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
@@ -223,8 +218,6 @@ jobs:
|
|||||||
~/.cache/ccache
|
~/.cache/ccache
|
||||||
~/.ccache
|
~/.ccache
|
||||||
key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
|
key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
|
||||||
restore-keys: |
|
|
||||||
ccache-${{ matrix.os }}-${{ env.CC }}-
|
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get install -qq ccache
|
sudo apt-get install -qq ccache
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
|
|||||||
Reference in New Issue
Block a user