Skip to content

Commit

Permalink
Update sonarcloud.yml (#127)
Browse files Browse the repository at this point in the history
* Update sonarcloud.yml

* Add x64

* More additions of x64
  • Loading branch information
jorgensd authored Aug 13, 2024
1 parent d28f4e6 commit 02338e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
container: ghcr.io/fenics/dolfinx/dev-env:current-mpich
env:
SONAR_SCANNER_VERSION: 5.0.1.3006 # Find the latest version in at: https://github.com/SonarSource/sonar-scanner-cli/tags
SONAR_SCANNER_VERSION: 6.1.0.4477 # Find the latest version in at: https://github.com/SonarSource/sonar-scanner-cli/tags
SONAR_SERVER_URL: "https://sonarcloud.io"
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
PETSC_ARCH: linux-gnu-real64-32
Expand All @@ -34,7 +34,7 @@ jobs:
apt-get install unzip
- name: Update pip
run: |
python3 -m pip install --break-system-packages --upgrade pip setuptools
python3 -m pip install --upgrade pip setuptools
- name: Set up JDK 17
uses: actions/setup-java@v4
Expand All @@ -51,12 +51,12 @@ jobs:

- name: Download and set up sonar-scanner
env:
SONAR_SCANNER_DOWNLOAD_URL: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${{ env.SONAR_SCANNER_VERSION }}-linux.zip
SONAR_SCANNER_DOWNLOAD_URL: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${{ env.SONAR_SCANNER_VERSION }}-linux-x64.zip
run: |
mkdir -p $HOME/.sonar
wget -O $HOME/.sonar/sonar-scanner.zip ${{ env.SONAR_SCANNER_DOWNLOAD_URL }}
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
echo "$HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
echo "$HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux-x64/bin" >> $GITHUB_PATH
- name: Download and set up build-wrapper
env:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
cmake --install build-dir
- name: Install DOLFINx-MPC (Python)
run: python3 -m pip -v install --break-system-packages --config-settings=cmake.build-type="Release" --no-build-isolation ./python
run: python3 -m pip -v install --config-settings=cmake.build-type="Release" --no-build-isolation ./python

- name: Run sonar-scanner
env:
Expand Down

0 comments on commit 02338e6

Please sign in to comment.