Try prepending some stuff #4207
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: CI | |
on: [push, pull_request, workflow_dispatch] | |
concurrency: | |
group: environment-${{github.ref}} | |
cancel-in-progress: true | |
env: | |
DISPLAY: ":99" # Display number to use for the X server | |
GALLIUM_DRIVER: llvmpipe # Use Mesa 3D software OpenGL renderer | |
ANDROID_NDK_VERSION: "26.1.10909125" # Android NDK version to use | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
tidy: | |
name: Analyzing on ${{ matrix.platform.name }} | |
runs-on: ${{ matrix.platform.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { name: macOS, os: macos-14 } | |
- { name: iOS, os: macos-14, flags: -DCMAKE_SYSTEM_NAME=iOS } | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Get CMake and Ninja | |
uses: lukka/get-cmake@latest | |
with: | |
cmakeVersion: latest | |
ninjaVersion: latest | |
- name: Install Windows Dependencies | |
if: runner.os == 'Windows' | |
run: | | |
curl.exe -o run-clang-tidy https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-15.0.7/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py | |
- name: Install Linux Dependencies | |
if: runner.os == 'Linux' | |
run: sudo apt-get update && sudo apt-get install libfreetype-dev libxrandr-dev libxcursor-dev libxi-dev libudev-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev | |
- name: Install macOS Dependencies | |
if: runner.os == 'macOS' | |
run: | | |
brew update | |
brew install llvm || true | |
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH | |
- name: Configure | |
run: cmake --preset dev -DCMAKE_CXX_COMPILER=clang++ ${{matrix.platform.flags}} | |
- name: Analyze Code | |
run: cmake --build build --target tidy |