Commit 02a7be5 1 parent 2a9cdd7 commit 02a7be5 Copy full SHA for 02a7be5
File tree 3 files changed +20
-12
lines changed
3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,22 @@ jobs:
24
24
- name : Set up msbuild
25
25
uses : microsoft/setup-msbuild@v2
26
26
27
- - name : Install sonar-scanner and build-wrapper
28
- uses : SonarSource/sonarcloud-github-c-cpp@v3
27
+ - name : Install Build Wrapper
28
+ uses : SonarSource/sonarqube-scan-action/install-build-wrapper@v5
29
29
30
30
- name : Restore NuGet packages
31
- working-directory : ${{env.GITHUB_WORKSPACE}}
32
- run : nuget restore ${{env.SOLUTION_FILE_PATH}}
31
+ working-directory : ${{ env.GITHUB_WORKSPACE }}
32
+ run : nuget restore ${{ env.SOLUTION_FILE_PATH }}
33
33
34
34
- name : Run build-wrapper
35
35
run : |
36
36
build-wrapper-win-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} msbuild netpbm-wic-codec.sln /t:netpbm-wic-codec:rebuild /p:Configuration="Release" /p:Platform="x64" /nodeReuse:false
37
37
38
- - name : Run sonar-scanner
38
+ - name : SonarQube Scan
39
+ uses : SonarSource/sonarqube-scan-action@v5
39
40
env :
40
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }} # Put the name of your token here
42
- run : |
43
- sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
41
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
42
+ with :
43
+ # Consult https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner/ for more information and options
44
+ args : >
45
+ --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
Original file line number Diff line number Diff line change 52
52
<MultiProcessorCompilation >true</MultiProcessorCompilation >
53
53
54
54
<!-- Explicit define that all projects are compiled according the draft C++23 standard -->
55
- <LanguageStandard >stdcpp23 </LanguageStandard >
55
+ <LanguageStandard >stdcpplatest </LanguageStandard >
56
56
<UseStandardPreprocessor >true</UseStandardPreprocessor >
57
57
58
58
<!-- To ensure high quality C++ code use warning level 4 and treat warnings as errors to ensure warnings are fixed promptly. -->
172
172
<EnableCppCoreCheck >true</EnableCppCoreCheck >
173
173
<EnableMicrosoftCodeAnalysis >true</EnableMicrosoftCodeAnalysis >
174
174
<EnableClangTidyCodeAnalysis >false</EnableClangTidyCodeAnalysis >
175
- <WholeProgramOptimization >true</WholeProgramOptimization >
176
175
</PropertyGroup >
177
176
178
177
<ItemDefinitionGroup Condition =" '$(Configuration)'=='Release'" >
186
185
<FunctionLevelLinking >true</FunctionLevelLinking >
187
186
<IntrinsicFunctions >true</IntrinsicFunctions >
188
187
<PreprocessorDefinitions >NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions >
188
+ <WholeProgramOptimization >true</WholeProgramOptimization >
189
+
190
+ <!-- Enable Optimize Global Data (/Gw). off by default -->
191
+ <AdditionalOptions >/Gw /Zc:checkGwOdr %(AdditionalOptions)</AdditionalOptions >
189
192
</ClCompile >
190
193
<Link >
191
194
<EnableCOMDATFolding >true</EnableCOMDATFolding >
192
195
<OptimizeReferences >true</OptimizeReferences >
196
+ <LinkTimeCodeGeneration >UseLinkTimeCodeGeneration</LinkTimeCodeGeneration >
193
197
194
198
<!-- Store only the filename of the PDB file into the .exe/.dll for deterministic builds and use /Brepo. -->
195
199
<AdditionalOptions >/PDBALTPATH:%_PDB% /Brepro %(AdditionalOptions)</AdditionalOptions >
Original file line number Diff line number Diff line change @@ -12,4 +12,6 @@ sonar.sources = src/
12
12
sonar.tests = test/
13
13
14
14
# Encoding of the source code files. Default is the default system encoding, which is not correct.
15
- sonar.sourceEncoding =UTF-8
15
+ sonar.sourceEncoding = UTF-8
16
+
17
+ sonar.cfamily.enableModules = true
You can’t perform that action at this time.
0 commit comments