From 019b3b80295bffe3ab5c3227400b8beb6334373a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Kardos?= Date: Mon, 1 Apr 2024 15:32:15 +0200 Subject: [PATCH] resource dir --- .github/workflows/sonarqube.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index a5d6af3..24dd953 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -71,7 +71,8 @@ jobs: wget https://github.com/petiaccja/TemplateCoverage/releases/download/v1.1.0/TemplateCoverage_Linux_x86_64.zip unzip TemplateCoverage_Linux_x86_64.zip chmod +x ./TemplateCoverage_Linux_x86_64/template-coverage - python3 ./TemplateCoverage_Linux_x86_64/run_on_compile_commands.py -p ${{github.workspace}}/build/${{env.conan_preset}}/compile_commands.json ./TemplateCoverage_Linux_x86_64/template-coverage -- --format=lcov --out-file=${{github.workspace}}/template_coverage.info + export RESOURCE_DIR=$(clang++ -print-resource-dir) + python3 ./TemplateCoverage_Linux_x86_64/run_on_compile_commands.py -p ${{github.workspace}}/build/${{env.conan_preset}}/compile_commands.json ./TemplateCoverage_Linux_x86_64/template-coverage -- --format=lcov --out-file=${{github.workspace}}/template_coverage.info -extra-arg=-resource-dir=$RESOURCE_DIR - name: Test & code coverage working-directory: ${{github.workspace}}/build/${{ env.conan_preset }}/bin