Skip to content

Commit

Permalink
ci: fix build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 18, 2024
1 parent 156d7d3 commit 4d23302
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- name: CMake Build
if: ${{ inputs.enable-sonar == false }}
run: |
cmake --build out/build/${{ inputs.cmake-preset }} -j 16
cmake --build out/build/${{ inputs.cmake-preset }} --target zbassmusic_vdf -j 16
- name: Install Sonar
if: ${{ inputs.enable-sonar == true }}
run: |
Expand All @@ -123,7 +123,7 @@ jobs:
- name: CMake Build (Sonar Wrapper)
if: ${{ inputs.enable-sonar == true }}
run: |
./build-wrapper-win-x86/build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build out/build/${{ inputs.cmake-preset }} -j 16
./build-wrapper-win-x86/build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build out/build/${{ inputs.cmake-preset }} --target zbassmusic_vdf -j 16
- name: Sonar Scanner
if: ${{ inputs.enable-sonar == true }}
env:
Expand All @@ -137,6 +137,7 @@ jobs:
if: ${{ inputs.enable-tests == true }}
run: |
$status = $false;
cmake --build out/build/${{ inputs.cmake-preset }} --target tests -j 16
if (ctest --test-dir out/build/${{ inputs.cmake-preset }}/tests -j 16) {
echo "tests=success" >> $env:GITHUB_OUTPUT
$status = $true;
Expand Down

0 comments on commit 4d23302

Please sign in to comment.