Skip to content

Commit

Permalink
Update sonar CI modular-boost and JDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Feb 25, 2023
1 parent fa49985 commit 88e4b11
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions .github/workflows/mandelbrot_sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,44 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install-boost
fetch-depth: '0'
- name: clone-submods-bootstrap-headers-boost-develop
run: |
sudo apt-get update --quiet
sudo apt-get install --no-install-recommends --quiet --yes libboost-dev
git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
cd ../boost-root
git submodule update --init tools
git submodule update --init libs/array
git submodule update --init libs/assert
git submodule update --init libs/concept_check
git submodule update --init libs/config
git submodule update --init libs/container
git submodule update --init libs/container_hash
git submodule update --init libs/core
git submodule update --init libs/describe
git submodule update --init libs/detail
git submodule update --init libs/filesystem
git submodule update --init libs/functional
git submodule update --init libs/gil
git submodule update --init libs/integer
git submodule update --init libs/io
git submodule update --init libs/iterator
git submodule update --init libs/lexical_cast
git submodule update --init libs/move
git submodule update --init libs/mp11
git submodule update --init libs/mpl
git submodule update --init libs/multiprecision
git submodule update --init libs/numeric/conversion
git submodule update --init libs/preprocessor
git submodule update --init libs/range
git submodule update --init libs/smart_ptr
git submodule update --init libs/static_assert
git submodule update --init libs/system
git submodule update --init libs/throw_exception
git submodule update --init libs/type_traits
git submodule update --init libs/utility
git submodule update --init libs/variant2
./bootstrap.sh
./b2 headers
- name: prepare-environment
run: |
echo "query GCC version"
Expand All @@ -38,9 +71,10 @@ jobs:
cd ..
mkdir -p images/tmp
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
- 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
Expand All @@ -58,7 +92,7 @@ jobs:
echo "$HOME/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH
- name: Run build-wrapper
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} g++ -c -finline-functions -march=native -mtune=native -O3 -Wall -Wextra -std=c++2a -I. -Ijpeg/jpeg-6b-2022 -pthread test/test_mandelbrot.cpp -o test_mandelbrot.o && g++ test_mandelbrot.o -lpthread -ljpeg-6b -Ljpeg/jpeg-6b-2022/obj -o test_mandelbrot.exe
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} g++ -c -finline-functions -march=native -mtune=native -O3 -Wall -Wextra -std=c++2a -I. -Ijpeg/jpeg-6b-2022 -I../boost-root -pthread test/test_mandelbrot.cpp -o test_mandelbrot.o && g++ test_mandelbrot.o -lpthread -ljpeg-6b -Ljpeg/jpeg-6b-2022/obj -o test_mandelbrot.exe
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 88e4b11

Please sign in to comment.