Skip to content

Commit 1c1b28e

Browse files
committed
analysis: use absolute path for .xcresult
1 parent 9b305d4 commit 1c1b28e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/analysis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ jobs:
2020
with:
2121
brew: ninja
2222
- uses: SonarSource/sonarcloud-github-c-cpp@v3.2.0
23+
2324
- name: "Run setup-metal-cpp.ps1"
2425
run: scripts/setup-metal-cpp.ps1 -Folder "externals" -FileName "metal-cpp_macOS15_iOS18.zip"
2526
shell: pwsh
27+
2628
- uses: lukka/get-cmake@v4.0.0
2729
with:
2830
cmakeVersion: "3.31"
31+
2932
- uses: lukka/run-vcpkg@v11.5
3033
with:
3134
vcpkgDirectory: "${{ runner.tool_cache }}/vcpkg"
@@ -65,14 +68,17 @@ jobs:
6568
- name: "Run xccov-to-sonarqube-generic.sh"
6669
id: xcresult
6770
run: |
71+
# xcrun --show-sdk-path
6872
xcresult_path=$(find DerivedData/Logs/Test/ -maxdepth 1 -name "Test*.xcresult" | tail -n 1)
69-
echo "path=$xcresult_path" >> "$GITHUB_OUTPUT"
73+
echo "path=$(pwd)/xcresult_path" >> "$GITHUB_OUTPUT"
7074
bash ./scripts/xccov-to-sonarqube-generic.sh $xcresult_path > docs/coverage.xml
7175
shell: bash
7276

7377
- uses: kishikawakatsumi/xcresulttool@v1.7.1
78+
continue-on-error: true
7479
with:
7580
path: "${{ steps.xcresult.outputs.path }}"
81+
upload-bundles: 'failure'
7682

7783
- name: "Run xcrun(llvm-cov)"
7884
run: |

0 commit comments

Comments
 (0)