From daa205bcef6d7e0ec5f0a334b1b44f8816791e92 Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Thu, 14 Oct 2021 15:25:50 +0200 Subject: [PATCH] Sonarcloud: Enable caching Signed-off-by: Felix Weilbach --- .github/workflows/sonarcloud.yml | 7 +++++++ sonar-project.properties | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 20caa404d..3df624a7d 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -17,6 +17,13 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + + - name: Restore cache + uses: actions/cache@v2 + with: + path: /cache + key: ${{ runner.os }} + - name: Run build-wrapper run: | mkdir build diff --git a/sonar-project.properties b/sonar-project.properties index d733e8ff6..536c82d55 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,3 +5,5 @@ sonar.exclusions=3rdparty/** sonar.language=c++ sonar.cfamily.cache.enabled=false sonar.cfamily.threads=2 +sonar.cfamily.cache.enabled=true, +sonar.cfamily.cache.path=/cache/sonarcloud -- 2.30.2