Skip to content

fix: attempted to update sonar scan version #722

fix: attempted to update sonar scan version

fix: attempted to update sonar scan version #722

Workflow file for this run

name: Linux 64bit CI
on:
push:
branches:
[ master, development ]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
env:
GITHUB_CI_COMPATIBILITY_PATH: /usr/lib/x86_64-linux-gnu
jobs:
build:
runs-on:
group: ubuntu-runners
steps:
- uses: actions/checkout@v4
with:
node-version: '20'
submodules: recursive
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get -y install \
cmake \
libsdl2-dev libsdl2-mixer-dev \
libsdl2-ttf-dev libsdl2-image-dev \
libpng-dev libpng++-dev \
libz-dev libgtest-dev \
libboost-system-dev \
libspdlog-dev \
rapidjson-dev \
-o APT::Immediate-Configure=0
- name: cmake release
run: |
cd ${{ github.workspace }}
mkdir build_release
cd build_release
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_64_BIT=True -DUNIT_TESTS=True -DGITHUB_CI_COMPATIBILITY_PATH="${{env.GITHUB_CI_COMPATIBILITY_PATH}}" ..
- name: make release
run: |
cd ${{ github.workspace }}
cd build_release
curl -L -O https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip -o build-wrapper-linux-x86.zip
build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir build_wrapper_output make
- name: run unit tests
run: |
cd ${{ github.workspace }}
cd build_release/remc2-unit-test
./remc2-unit-test
- name: sonarcloud scan
if: github.repository_owner == 'thobbsinteractive'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
curl -L -O https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.1.0.4477-linux-x64.zip
unzip sonar-scanner-cli-6.1.0.4477-linux-x64.zip
sonar-scanner-cli-6.1.0.4477-linux-x64/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io