This reduces the cache storage for active branches and since caches for
different branches are separate and we abort previous builds of the same
branch, this is not necessary to ensure caches can successfully be stored.
- uses: actions/cache@v5
with:
path: ~/.cache/ccache
- uses: actions/cache@v5
with:
path: ~/.cache/ccache
- key: ccache-android-${{ github.sha }}
- restore-keys: |
- ccache-android-
# necessary for newer versions of the Gradle plugin
- uses: actions/setup-java@v5
with:
# necessary for newer versions of the Gradle plugin
- uses: actions/setup-java@v5
with:
uses: actions/cache@v5
with:
path: ~/.cache/ccache
uses: actions/cache@v5
with:
path: ~/.cache/ccache
- key: ccache-ubuntu-latest-gcc-codeql-${{ github.sha }}
+ key: ccache-ubuntu-latest-gcc-codeql
- ccache-ubuntu-latest-gcc-codeql
- ccache-ubuntu-latest-gcc-all-${{ github.sha }}
- ccache-ubuntu-latest-gcc-all-
+ ccache-ubuntu-latest-gcc-all
ccache-ubuntu-latest-gcc-
- if: matrix.language == 'cpp'
run: |
ccache-ubuntu-latest-gcc-
- if: matrix.language == 'cpp'
run: |
# builds and, similarly, builds with leak-detective only differ in two
# files (LD itself and library.c); but different tests build different
# dependencies, so different caches are needed
# builds and, similarly, builds with leak-detective only differ in two
# 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 }}-${{ github.sha }}
+ key: ccache-ubuntu-latest-${{ env.CC }}-${{ matrix.test }}
- ccache-ubuntu-latest-${{ env.CC }}-${{ matrix.test }}-
ccache-ubuntu-latest-${{ env.CC }}-
- run: |
sudo apt-get install -qq ccache
ccache-ubuntu-latest-${{ env.CC }}-
- run: |
sudo apt-get install -qq ccache
path: |
~/.cache/ccache
~/.ccache
path: |
~/.cache/ccache
~/.ccache
- key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}-${{ github.sha }}
+ key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
- ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}-
- ccache-${{ matrix.os }}-${{ env.CC }}-all-${{ github.sha }}
- ccache-${{ matrix.os }}-${{ env.CC }}-all-
+ ccache-${{ matrix.os }}-${{ env.CC }}-all
ccache-${{ matrix.os }}-${{ env.CC }}-
- run: |
sudo apt-get install -qq ccache
ccache-${{ matrix.os }}-${{ env.CC }}-
- run: |
sudo apt-get install -qq ccache
path: |
~/.cache/ccache
~/.ccache
path: |
~/.cache/ccache
~/.ccache
- key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}-${{ github.sha }}
+ key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}
- ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}-
ccache-${{ matrix.os }}-${{ env.CC }}-
- run: |
sudo apt-get install -qq ccache
ccache-${{ matrix.os }}-${{ env.CC }}-
- run: |
sudo apt-get install -qq ccache
- uses: actions/cache@v5
with:
path: ~/.cache/ccache
- uses: actions/cache@v5
with:
path: ~/.cache/ccache
- key: ccache-alpine-${{ github.sha }}
- restore-keys: |
- ccache-alpine-
- run: ccache -z
# don't use the default action as we don't want to build dependencies or install bash
- run: ./scripts/test.sh deps
- run: ccache -z
# don't use the default action as we don't want to build dependencies or install bash
- run: ./scripts/test.sh deps
- uses: actions/cache@v5
with:
path: ~/Library/Caches/ccache
- uses: actions/cache@v5
with:
path: ~/Library/Caches/ccache
- key: ccache-${{ runner.os }}-${{ github.sha }}
- restore-keys: |
- ccache-${{ runner.os }}-
+ key: ccache-${{ runner.os }}
# workaround for conflict between Python installed in the image and via brew
- run: find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete -print
- run: |
# workaround for conflict between Python installed in the image and via brew
- run: find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete -print
- run: |
with:
path: |
~/.cache/ccache
with:
path: |
~/.cache/ccache
- key: ccache-sonarcloud-${{ github.sha }}
- restore-keys: |
- ccache-sonarcloud-
- run: |
sudo apt-get install -qq ccache
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
- run: |
sudo apt-get install -qq ccache
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
- uses: actions/cache@v5
with:
path: ${{ env.CCACHE_DIR }}
- uses: actions/cache@v5
with:
path: ${{ env.CCACHE_DIR }}
- key: ccache-tkm-${{ github.sha }}
- restore-keys: |
- ccache-tkm-
- name: Build Docker Image
run: docker build -t strongswan-tkm -f testing/tkm/Dockerfile testing
- name: Run Tests in Container
- name: Build Docker Image
run: docker build -t strongswan-tkm -f testing/tkm/Dockerfile testing
- name: Run Tests in Container
- uses: actions/cache@v5
with:
path: ~/.cache/ccache
- uses: actions/cache@v5
with:
path: ~/.cache/ccache
- key: ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.sha }}
- restore-keys: |
- ccache-${{ runner.os }}-${{ matrix.test }}-
+ key: ccache-${{ runner.os }}-${{ matrix.test }}
- run: |
sudo apt-get install -qq ccache
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
- run: |
sudo apt-get install -qq ccache
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV