@@ -320,7 +320,7 @@ jobs:
320320
321321 build_test_windows_mingw :
322322 name : MinGW compiler test (shared Qt 6.5.0)
323- runs-on : windows-latest
323+ runs-on : windows-2022
324324 steps :
325325 - uses : actions/checkout@v3
326326 - name : Install Qt
@@ -392,40 +392,3 @@ jobs:
392392 COVERITY_SCAN_TOKEN : ${{ secrets.COVERITY_SCAN_TOKEN }}
393393 COVERITY_SCAN_EMAIL : ${{ secrets.COVERITY_SCAN_EMAIL }}
394394 COVERITY_BUILD_COMMAND : cmake --build .
395-
396- build_analyze_linux_sonarcloud :
397- if : github.repository_owner == 'LongSoft' && github.event_name != 'pull_request'
398- name : SonarCloud Static Analysis (shared Qt 6.5.0)
399- runs-on : ubuntu-latest
400- env :
401- BUILD_WRAPPER_OUT_DIR : build_wrapper_output_directory # Directory where build-wrapper output will be placed
402- steps :
403- - uses : actions/checkout@v3
404- with :
405- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
406- - name : Install Qt
407- uses : jurplel/install-qt-action@v3
408- with :
409- version : ' 6.5.0'
410- host : ' linux'
411- target : ' desktop'
412- - name : Install JDK 17
413- uses : actions/setup-java@v3
414- with :
415- distribution : ' zulu'
416- java-version : 17
417- - name : Install build-wrapper
418- uses : SonarSource/sonarcloud-github-c-cpp@v2
419- - name : Run build-wrapper
420- run : |
421- cmake -B build .
422- build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build
423- - name : SonarQube Scan
424- uses : SonarSource/sonarqube-scan-action@v6.0.0
425- env :
426- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
427- SONAR_ROOT_CERT : ${{ secrets.SONAR_ROOT_CERT }}
428- with :
429- # Consult https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner/ for more information and options
430- args : >
431- --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
0 commit comments