Fix macOS QML composite test assets (#75) #247
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: Analysis | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| name: Test & Analyze | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| pacman-key --init | |
| pacman-key --populate archlinux | |
| pacman -Syu --noconfirm archlinux-keyring | |
| pacman -S --needed --noconfirm \ | |
| base-devel git cmake ninja clang mold \ | |
| qt6-base qt6-declarative qt6-quick3d qt6-multimedia qt6-shadertools \ | |
| qt6-svg qt6-5compat qt6-tools qt6-wayland \ | |
| ffmpeg luajit carla extra-cmake-modules \ | |
| sudo ccache vulkan-headers vulkan-icd-loader | |
| - name: Configure | |
| run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
| - name: Build Tests | |
| run: cmake --build build | |
| - name: Run Tests | |
| run: cd build && ctest --output-on-failure | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| - name: Run clang-tidy | |
| run: | | |
| # Remove GCC-specific flags not recognized by clang-tidy | |
| sed -i 's/-mno-direct-extern-access//g' build/compile_commands.json | |
| run-clang-tidy -p build -quiet \ | |
| core/src/*.cpp \ | |
| engine/**/*.cpp \ | |
| scripting/*.cpp \ | |
| ui/src/*.cpp \ | |
| ui/src/**/*.cpp | |
| continue-on-error: false |