Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Jul 16, 2024
1 parent 2d3117a commit ec0367d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/sonar_cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,21 @@ jobs:
name: sonar_cloud_run
runs-on: ubuntu-latest
needs: build
env:
ARTIFACTS_DIR: build_artifacts
COMPILE_COMMANDS_DIR: build_compile_commands

steps:
# update when https://github.com/actions/download-artifact/issues/315 is fixed
- name: Download JSON compile commands artifact
uses: actions/download-artifact@v3
with:
name: compile-commands
path: ${RUNNER_WORKSPACE}
path: "${{ env.ARTIFACTS_DIR }}"

- name: Unzip downloaded JSON compile commands file
run: |
unzip "${RUNNER_WORKSPACE}"/compile-commands.zip -d "${{ env.BUILD_WRAPPER_OUT_DIR }}"
unzip "${{ env.ARTIFACTS_DIR }}/compile-commands.zip -d "${{ env.COMPILE_COMMANDS_DIR }}"
- name: Run sonar-scanner
env:
Expand All @@ -92,4 +95,4 @@ jobs:
--define sonar.tests="compiler/extensions/cpp/runtime/test,test" \
--define sonar.test.inclusions="compiler/**/test/**/*.h,compiler/**/test/**/.cpp,test/**/*.h,test/**/*.cpp" \
--define sonar.scm.exclusions.disabled="true" \
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
--define sonar.cfamily.compile-commands="${{ env.COMPILE_COMMANDS_DIR }}/compile_commands.json"

0 comments on commit ec0367d

Please sign in to comment.