Skip to content

Commit 3ad668c

Browse files
authored
Remove SonarCloud cache setup as it is now offered by default (PiSCSI#1135)
No need to configure the cache anymore, SonarCloud now has an automatic analysis caching. See https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/#analysis-cache.
1 parent 3c7e2cd commit 3ad668c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

.github/workflows/cpp.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,28 +93,16 @@ jobs:
9393
working-directory: cpp
9494
run: gcov --preserve-paths $(find -name '*.gcno')
9595

96-
- uses: actions/cache@v3
97-
name: Cache SonarCloud scan cache
98-
id: sonar-scan-cache
99-
with:
100-
path: ~/.sonar_cache/
101-
key: sonar-scan-cache-${{ env.SONAR_SCANNER_VERSION }}-${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
102-
restore-keys: |
103-
sonar-scan-cache-${{ env.SONAR_SCANNER_VERSION }}-${{ github.ref_name }}
104-
10596
- name: Run sonar-scanner
10697
env:
10798
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10899
run: >-
109-
(mkdir -p $HOME/.sonar_cache || true) &&
110100
$HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin/sonar-scanner
111101
--define sonar.host.url="${{ env.SONAR_SERVER_URL }}"
112102
--define sonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
113103
--define sonar.organization=${{ env.SONAR_ORGANIZATION }}
114104
--define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
115105
--define sonar.cfamily.gcov.reportsPath=.
116-
--define sonar.cfamily.cache.enabled=true
117-
--define sonar.cfamily.cache.path="$HOME/.sonar_cache/"
118106
--define sonar.coverage.exclusions="cpp/**/test/**"
119107
--define sonar.cpd.exclusions="cpp/**/test/**"
120108
--define sonar.inclusions="cpp/**,python/**"

0 commit comments

Comments
 (0)