Skip to content

Commit b0ecbe6

Browse files
committed
Use ccache in build_test Github Action.
1 parent 9955fd8 commit b0ecbe6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build_test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v1
1818
- uses: actions/setup-python@v1
19+
- name: ccache
20+
uses: hendrikmuhs/ccache-action@v1
21+
with:
22+
key: ${{ matrix.os }}-${{ matrix.type }}
23+
max-size: 100M
1924
- name: Get system dependencies
2025
run: sudo apt-get update && sudo apt-get install -y
2126
libwayland-dev
@@ -44,7 +49,7 @@ jobs:
4449
env:
4550
CC: gcc-10
4651
CXX: g++-10
47-
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} ..
52+
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
4853
- name: Build
4954
run: cmake --build build -j $(nproc --all)
5055
- name: Test

0 commit comments

Comments
 (0)