Skip to content

Commit 24176aa

Browse files
authored
Faster CI (#804)
* Added workflow code + utility script * Revert "Added workflow code + utility script" This reverts commit 22b68c6. * Testing hendrikmuhs ccache github action * added key so different runs have their own ccache + moved ccache install * Testing symlink variant * Moving ccache step with key directly after checkout
1 parent b4b3717 commit 24176aa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,15 @@ jobs:
4747
fetch-depth: 0
4848
submodules: recursive
4949

50+
- name: ccache # This should always come after the actions/checkout step.
51+
uses: hendrikmuhs/ccache-action@v1.2
52+
with:
53+
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.build }}
54+
5055
- name: Install Phasar Dependencies
5156
shell: bash
5257
run: |
53-
./utils/InstallAptDependencies.sh --noninteractive tzdata ${{ matrix.compiler[2] }} ${{ matrix.extra_dependencies }}
58+
./utils/InstallAptDependencies.sh --noninteractive tzdata ccache ${{ matrix.compiler[2] }} ${{ matrix.extra_dependencies }}
5459
5560
- name: Building Phasar in ${{ matrix.build }} with ${{ matrix.compiler[0] }}
5661
env:
@@ -60,6 +65,8 @@ jobs:
6065
run: |
6166
cmake -S . -B build \
6267
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
68+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
69+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
6370
-DBUILD_PHASAR_CLANG=OFF \
6471
-DPHASAR_USE_Z3=ON \
6572
${{ matrix.flags }} \

0 commit comments

Comments
 (0)