Update dependency sdl to v2.30.7 #592
This file contains 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: sonarcloud scan | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: sonarcloud scan | |
runs-on: ubuntu-latest | |
env: | |
CONAN_SYSREQUIRES_MODE: "enabled" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install sonar-scanner and build-wrapper | |
uses: sonarsource/sonarcloud-github-c-cpp@v3 | |
id: sonarscan | |
- name: Download and set up sonar-scanner | |
run: | | |
wget -nv https://cdn.anotherfoxguy.com/sonar-scanner/cytopia -O run-sonar-scanner | |
sudo chmod 777 run-sonar-scanner | |
- name: Cache conan | |
id: cache-conan | |
uses: actions/cache@v4 | |
with: | |
key: conan-linux-${{ hashFiles('conanfile.py') }} | |
path: ~/.conan2/ | |
- name: Install dependencies | |
run: | | |
echo -e 'pcm.!default {\n type plug\n slave.pcm "null"\n}' > ~/.asoundrc | |
sudo apt-get update | |
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-cmake.sh" | sudo bash | |
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-conan.sh" | sudo bash | |
sudo apt-get -y install \ | |
ninja-build libgl-dev libegl-dev \ | |
libx11-xcb-dev \ | |
libfontenc-dev \ | |
libxaw7-dev \ | |
libxcomposite-dev \ | |
libxcursor-dev \ | |
libxdamage-dev \ | |
libxfixes-dev \ | |
libxi-dev \ | |
libxinerama-dev \ | |
libxmu-dev \ | |
libxmuu-dev \ | |
libxpm-dev \ | |
libxrandr-dev \ | |
libxres-dev \ | |
libxss-dev \ | |
libxtst-dev \ | |
libxv-dev \ | |
libxvmc-dev \ | |
libxxf86vm-dev \ | |
libxcb-render-util0-dev \ | |
libxcb-xkb-dev \ | |
libxcb-icccm4-dev \ | |
libxcb-image0-dev \ | |
libxcb-keysyms1-dev \ | |
libxcb-randr0-dev \ | |
libxcb-shape0-dev \ | |
libxcb-sync-dev \ | |
libxcb-xfixes0-dev \ | |
libxcb-xinerama0-dev \ | |
libxcb-util-dev \ | |
libxcb-util0-dev \ | |
libxcb-dri3-dev | |
- name: Fix broken mpg123 lib | |
if: steps.cache-conan.outputs.cache-hit != 'true' | |
run: | | |
conan profile detect --force | |
echo "tools.system.package_manager:mode = install" > ~/.conan2/global.conf | |
echo "tools.system.package_manager:sudo = True" >> ~/.conan2/global.conf | |
conan remote add overte https://git.anotherfoxguy.com/api/packages/overte/conan -f | |
conan install --requires mpg123/1.31.2 -b mpg123/1.31.2 -b missing | |
- name: Configure | |
run: | | |
conan install . -s build_type=Release -b missing -pr:b=default | |
cmake --preset conan-release -DBUILD_TEST=ON -DENABLE_COVERAGE=ON | |
- name: Run build-wrapper | |
run: build-wrapper-linux-x86-64 --out-dir bw-output make -j4 | |
- name: Test | |
env: | |
SDL_VIDEODRIVER: dummy | |
SDL_AUDIODRIVER: dummy | |
continue-on-error: true | |
run: ctest -j2 --output-on-failure | |
- name: Generate coverage | |
run: make gcov | |
- name: Run sonar-scanner | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_SCANNER_EXE: ${{ steps.sonarscan.outputs.sonar-scanner-binary }} | |
run: ./run-sonar-scanner | |
- name: Clean Conan pkgs | |
run: conan cache clean "*" -sbd |