Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Oct 30, 2023
1 parent 2367be0 commit 0147ccc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
container:
image: ghcr.io/${{ github.repository }}/linux-ci:latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install build wrapper
run: |
wget http://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
Expand All @@ -18,10 +22,6 @@ jobs:
run: |
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip
unzip sonar-scanner-cli-4.6.2.2472-linux.zip
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Build and scan
run: ci/buildsonarcloud.sh
env:
Expand Down
4 changes: 2 additions & 2 deletions ci/buildsonarcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cmake "$REPO_ROOT" -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON

# Wraps the compilation with the Build Wrapper to generate configuration (used
# later by the SonarQube Scanner) into the "bw-output" folder
/build-wrapper-linux-x86/build-wrapper-linux-x86-64 \
"$REPO_ROOT"/build-wrapper-linux-x86/build-wrapper-linux-x86-64 \
--out-dir bw-output cmake \
--build .
# Test project
Expand All @@ -46,6 +46,6 @@ ctest -VV
make gcov

# Scan project
/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dproject.settings="$REPO_ROOT"/sonar-project.properties -Dsonar.projectBaseDir="$REPO_ROOT" -Dsonar.cfamily.gcov.reportsPath="$BUILD_DIR"
"$REPO_ROOT"/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dproject.settings="$REPO_ROOT"/sonar-project.properties -Dsonar.projectBaseDir="$REPO_ROOT" -Dsonar.cfamily.gcov.reportsPath="$BUILD_DIR"


0 comments on commit 0147ccc

Please sign in to comment.