Skip to content

Commit 0ae7730

Browse files
authored
[CI] Enable ccache on build-linux-arm64 (#208)
1 parent 58a652e commit 0ae7730

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
@@ -159,9 +159,16 @@ jobs:
159159
submodules: true
160160
- name: Install prerequisites
161161
run: sudo apt-get update && sudo apt-get install -y libomp-dev build-essential cmake
162+
- name: Setup ccache
163+
uses: hendrikmuhs/[email protected]
164+
with:
165+
key: ccache-${{ github.job }}
162166
- name: Build and Test
163167
run: |
164-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
168+
cmake -S . -B build \
169+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
170+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
171+
-DCMAKE_BUILD_TYPE=Release
165172
cmake --build build --parallel
166173
cmake --build build -t test
167174
env:

0 commit comments

Comments
 (0)