From 70ddd5074eef79fabd149eaf804e4462d0c167ac Mon Sep 17 00:00:00 2001 From: Alexandre Quesnel <131881+aquesnel@users.noreply.github.com> Date: Mon, 23 Nov 2020 05:36:06 +0000 Subject: [PATCH] Add caching of cppcheck to github action CI builds --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca4d849b..38c0efaa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -131,6 +131,13 @@ jobs: CPPCHECK_REPO: https://github.com/danmar/cppcheck.git steps: - uses: actions/checkout@v2 + - name: Cache cppcheck + uses: actions/cache@v2 + env: + cache-name: cache-cppcheck + with: + path: ~/cppcheck.local + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.CPPCHECK_VER }} - run: sudo scripts/install_cppcheck_dependencies_with_apt.sh - run: ./bootstrap - run: scripts/install_cppcheck.sh $CPPCHECK_REPO $CPPCHECK_VER