From 4a95fdccf07e62e4be93d1bd08edd555ec16c9c4 Mon Sep 17 00:00:00 2001 From: Tristan Carel Date: Mon, 25 Sep 2023 11:34:32 +0200 Subject: [PATCH] GitHub CI: improve PWD management --- .github/workflows/sonarsource.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sonarsource.yml b/.github/workflows/sonarsource.yml index 7f741d1ce6..7ebe5f057d 100644 --- a/.github/workflows/sonarsource.yml +++ b/.github/workflows/sonarsource.yml @@ -39,15 +39,15 @@ jobs: shell: bash working-directory: ${{runner.workspace}}/nmodl run: | - mkdir build && cd build - cmake .. -G Ninja \ + mkdir build + cmake -S . -B build -G Ninja \ -DPYTHON_EXECUTABLE=$(which python3) \ - -DCMAKE_BUILD_TYPE=Debug + -DCMAKE_BUILD_TYPE=Release - name: Run build-wrapper - working-directory: ${{runner.workspace}}/nmodl/build + working-directory: ${{runner.workspace}}/nmodl run: | - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build . + build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ - name: Run sonar-scanner env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}