Skip to content

Commit

Permalink
👷 (sonarcloud): Activate sonarcloud cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Aug 12, 2021
1 parent 1f8281e commit eee704a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-code_analysis-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ env:
SONARCLOUD_BUILD_WRAPPER_FILENAME: "build-wrapper-linux-x86.zip"
SONARCLOUD_BUILD_WRAPPER_EXTRACT_DIRECTORY: "build-wrapper-linux-x86"

SONARCLOUD_CACHE_DIR: /home/runner/work/sonarcloud

jobs:
sonarcloud:
name: sonarcloud
Expand Down Expand Up @@ -139,6 +141,15 @@ jobs:
restore-keys: |
${{ runner.os }}-cache-code_analysis-sonarcloud-ccache-
- name: Cache sonarcloud cache
id: cache_ccache
uses: actions/cache@v2
with:
path: ${{ env.SONARCLOUD_CACHE_DIR}}
key: ${{ runner.os }}-cache-code_analysis-sonarcloud-sonarcloud_cache-${{ steps.cache_variables.outputs.date }}
restore-keys: |
${{ runner.os }}-cache-code_analysis-sonarcloud-sonarcloud_cache-
#
# Mark: - Install python/pip dependencies
#
Expand Down
6 changes: 3 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ sonar.coverage.exclusions=\
sonar.coverageReportPaths=_build_unit_tests/_coverage/coverage.xml

# sonar.cfamily.cache.enabled=true
# sonar.cfamily.cache.path=_sonar_cache
sonar.cfamily.cache.enabled=true
sonar.cfamily.cache.path=/home/runner/work/sonarcloud

sonar.cfamily.threads=4
sonar.cfamily.threads=2

# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

0 comments on commit eee704a

Please sign in to comment.