Fix number 2

This commit is contained in:
David Hrdlička
2025-04-15 11:35:48 +02:00
committed by GitHub
parent 775c7bd3d6
commit 1080389bfd

View File

@@ -96,8 +96,8 @@ jobs:
with: with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install sonar-scanner and build-wrapper # - name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v3 # uses: SonarSource/sonarcloud-github-c-cpp@v3
- name: Configure CMake - name: Configure CMake
run: >- run: >-
@@ -106,17 +106,19 @@ jobs:
-D NEW_DYNAREC=${{ matrix.dynarec.new }} -D NEW_DYNAREC=${{ matrix.dynarec.new }}
-D CMAKE_INSTALL_PREFIX=./build/artifacts -D CMAKE_INSTALL_PREFIX=./build/artifacts
- name: Build # - name: Build
run: | # run: |
.sonar/build-wrapper-win-x86/build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build # .sonar/build-wrapper-win-x86/build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build
- name: Run sonar-scanner - name: Build
if: 0 run: cmake --build build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # - name: Run sonar-scanner
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # env:
run: | # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.sonar/sonar-scanner-5.0.1.3006-windows/bin/sonar-scanner.bat --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: |
# .sonar/sonar-scanner-5.0.1.3006-windows/bin/sonar-scanner.bat --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
- name: Generate package - name: Generate package
run: cmake --install build run: cmake --install build