Skip to content

Commit 732282f

Browse files
authored
added initial usage of ccache in the CI (#4408)
1 parent d26eb39 commit 732282f

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/scriptcheck.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818

19+
- name: ccache
20+
uses: hendrikmuhs/ccache-action@v1.2
21+
with:
22+
key: scriptcheck-${{ runner.os }}
23+
1924
- name: Cache Cppcheck
2025
uses: actions/cache@v2
2126
with:
@@ -24,6 +29,7 @@ jobs:
2429

2530
- name: build cppcheck
2631
run: |
32+
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
2733
make -j$(nproc) -s
2834
strip -s ./cppcheck
2935

.github/workflows/selfcheck.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020

21+
- name: ccache
22+
uses: hendrikmuhs/ccache-action@v1.2
23+
with:
24+
key: selfcheck-${{ runner.os }}
25+
2126
- name: Cache Qt ${{ env.QT_VERSION }}
2227
id: cache-qt
2328
uses: actions/cache@v1 # not v2!
@@ -35,7 +40,7 @@ jobs:
3540
# TODO: cache this - perform same build as for the other self check
3641
- name: Self check (build)
3742
run: |
38-
make clean
43+
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
3944
make -j$(nproc) -s CXXFLAGS="-O2 -w" MATCHCOMPILER=yes
4045
4146
- name: CMake

0 commit comments

Comments
 (0)