added initial usage of `ccache` in the CI (#4408)
This commit is contained in:
parent
d26eb3903e
commit
732282fe06
|
@ -16,6 +16,11 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
key: scriptcheck-${{ runner.os }}
|
||||
|
||||
- name: Cache Cppcheck
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
@ -24,6 +29,7 @@ jobs:
|
|||
|
||||
- name: build cppcheck
|
||||
run: |
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||
make -j$(nproc) -s
|
||||
strip -s ./cppcheck
|
||||
|
||||
|
|
|
@ -18,6 +18,11 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
key: selfcheck-${{ runner.os }}
|
||||
|
||||
- name: Cache Qt ${{ env.QT_VERSION }}
|
||||
id: cache-qt
|
||||
uses: actions/cache@v1 # not v2!
|
||||
|
@ -35,7 +40,7 @@ jobs:
|
|||
# TODO: cache this - perform same build as for the other self check
|
||||
- name: Self check (build)
|
||||
run: |
|
||||
make clean
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||
make -j$(nproc) -s CXXFLAGS="-O2 -w" MATCHCOMPILER=yes
|
||||
|
||||
- name: CMake
|
||||
|
|
Loading…
Reference in New Issue