Skip to content

Commit ec5b75f

Browse files
use ccache on linux CI
1 parent 7ae1064 commit ec5b75f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v1
2020

21+
- name: Setup ccache
22+
uses: hendrikmuhs/ccache-action@v1.2
23+
with:
24+
key: ${{ github.job }}-${{ runner.os }}
25+
max-size: "1000M"
26+
2127
- name: Prepare File Tree
2228
run: |
2329
mkdir ./build
@@ -30,6 +36,8 @@ jobs:
3036
run: |
3137
cmake .. \
3238
-G Ninja \
39+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
40+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
3341
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
3442
-DBUILD_SHARED_LIBS=ON \
3543
-DCMAKE_PREFIX_PATH="${DEPS_INSTALL_DIR}" \

0 commit comments

Comments
 (0)