File tree Expand file tree Collapse file tree 4 files changed +106
-134
lines changed
Expand file tree Collapse file tree 4 files changed +106
-134
lines changed Original file line number Diff line number Diff line change 3737 needs : prep
3838 runs-on : ubuntu-latest
3939 container :
40- image : ghcr.io/${{ needs.prep.outputs.repo_lower }}/devcontaine :stable
40+ image : ghcr.io/${{ needs.prep.outputs.repo_lower }}/devcontainer :stable-amd64
4141 options : --user root
4242 credentials :
4343 username : ${{ github.actor }}
Original file line number Diff line number Diff line change 77 push :
88 branches :
99 - main
10- - develop
1110 pull_request :
1211 types : [opened, synchronize, reopened]
12+
13+ env :
14+ BUILD_TYPE : coverage
15+
1316jobs :
1417
1518 prep :
3235 username : ${{ github.actor }}
3336 password : ${{ secrets.GITHUB_TOKEN }}
3437 env :
35- BUILD_WRAPPER_OUT_DIR : build_wrapper_output_directory # Directory where build-wrapper output will be placed
38+ BUILD_WRAPPER_OUT_DIR : build/${{ env.BUILD_TYPE }}
39+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3640
3741 steps :
3842 - uses : actions/checkout@v4
@@ -53,15 +57,15 @@ jobs:
5357
5458 - name : Run Build Wrapper
5559 run : |
56- build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --workflow --preset coverage
60+ build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --workflow --preset ${{ env.BUILD_TYPE }}
5761
5862 - name : Collect coverage into one XML report
5963 run : |
6064 gcovr --sonarqube > coverage.xml
6165
6266 - name : Run tests to generate coverage statistics
6367 run : |
64- ctest --test-dir build/coverage
68+ ctest --test-dir build/${{ env.BUILD_TYPE }}
6569
6670 - name : SonarQube Scan
6771 uses : SonarSource/sonarqube-scan-action@v5
Original file line number Diff line number Diff line change 5454 "cacheVariables" : {
5555 "CMAKE_BUILD_TYPE" : " Instrument"
5656 }
57- },
58- {
59- "name" : " codeql" ,
60- "displayName" : " Build for CodeQL Analysis" ,
61- "inherits" : " debug" ,
62- "cacheVariables" : {
63- "FSB_BUILD_OPENBLAS" : " ON"
64- }
6557 }
6658 ],
6759 "buildPresets" : [
9486 "displayName" : " FSB Library Test Address Sanitizer Build" ,
9587 "configurePreset" : " instrument" ,
9688 "targets" : [" fsbcore_test" , " fsbposix_test" , " fsburdf_test" ]
97- },
98- {
99- "name" : " codeql" ,
100- "displayName" : " FSB Library CodeQL Build" ,
101- "configurePreset" : " codeql" ,
102- "targets" : [" fsbcore_test" , " fsbposix_test" ]
10389 }
10490 ],
10591 "testPresets" : [
162148 "name" : " coverage"
163149 }
164150 ]
165- },
166- {
167- "name" : " codeql" ,
168- "displayName" : " FSB Library CodeQL Workflow" ,
169- "steps" : [
170- {
171- "type" : " configure" ,
172- "name" : " codeql"
173- },
174- {
175- "type" : " build" ,
176- "name" : " codeql"
177- }
178- ]
179151 }
180152 ]
181153}
You can’t perform that action at this time.
0 commit comments