Merge pull request #285 from thobbsinteractive/40-the-reflection-geom… #760
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
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-6.1.0.4477-linux-x64/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io |