Skip to content

Commit 5c7b841

Browse files
committed
Add caching for linter
1 parent bcd57d1 commit 5c7b841

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/clang-cir-lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3333
with:
3434
fetch-depth: 2
35+
- name: Setup ccache
36+
uses: hendrikmuhs/ccache-action@63069e3931dedbf3b63792097479563182fe70d1 # v1.2.18
37+
with:
38+
variant: "sccache"
39+
max-size: "2000M"
3540
- name: Configure and CodeGen
3641
run: |
3742
cmake -G Ninja \
@@ -46,7 +51,10 @@ jobs:
4651
-DCLANG_INCLUDE_TESTS=OFF \
4752
-DMLIR_INCLUDE_TESTS=OFF \
4853
-DCMAKE_BUILD_TYPE=Release \
49-
-DLLVM_TARGETS_TO_BUILD=host
54+
-DLLVM_TARGETS_TO_BUILD=host \
55+
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
56+
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
57+
-DCLANG_ENABLE_CIR=ON
5058
5159
ninja -C build
5260

0 commit comments

Comments
 (0)