diff --git a/.github/workflows/scriptcheck.yml b/.github/workflows/scriptcheck.yml index 939bb57ff..a1f99da3b 100644 --- a/.github/workflows/scriptcheck.yml +++ b/.github/workflows/scriptcheck.yml @@ -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 diff --git a/.github/workflows/selfcheck.yml b/.github/workflows/selfcheck.yml index 3acb541b4..fdd0a6bc9 100644 --- a/.github/workflows/selfcheck.yml +++ b/.github/workflows/selfcheck.yml @@ -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