Disable clang-tidy for Android builds #102
Workflow file for this run
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: CMake on multiple platforms | |
| on: [push, pull_request] | |
| jobs: | |
| build-all: | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| # Ensure we get feedback for all matrix combinations | |
| # Consider changing this to true when things are more stable | |
| fail-fast: false | |
| matrix: | |
| build_type: [Release] | |
| config: | |
| - { os: windows-latest, c: cl, cpp: cl } | |
| - { os: windows-latest, c: clang, cpp: clang++ } | |
| - { os: macos-latest, c: clang, cpp: clang++ } | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Configure CMake | |
| run: > | |
| cmake -B build | |
| -DCMAKE_CXX_COMPILER=${{ matrix.config.cpp }} | |
| -DCMAKE_C_COMPILER=${{ matrix.config.c }} | |
| -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
| -DSDL_UNIX_CONSOLE_BUILD=ON | |
| -S . | |
| - name: Build | |
| run: cmake --build build --config ${{ matrix.build_type }} | |
| - name: Test | |
| working-directory: ./build/tests | |
| run: ctest --build-config ${{ matrix.build_type }} --output-on-failure | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: shikennuggets/arch-build-env:latest | |
| strategy: | |
| # Ensure we get feedback for all matrix combinations | |
| # Consider changing this to true when things are more stable | |
| fail-fast: false | |
| matrix: | |
| build_type: [Release] | |
| compiler: | |
| - { c: gcc, cpp: g++ } | |
| - { c: clang, cpp: clang++ } | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Configure CMake | |
| run: > | |
| cmake -B build | |
| -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cpp }} | |
| -DCMAKE_C_COMPILER=${{ matrix.compiler.c }} | |
| -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
| -DSDL_UNIX_CONSOLE_BUILD=ON | |
| -S . | |
| - name: Build | |
| run: cmake --build build --config ${{ matrix.build_type }} | |
| - name: Test | |
| working-directory: ./build/tests | |
| run: ctest --build-config ${{ matrix.build_type }} --output-on-failure | |
| build-android: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false # TODO - Consider changing this to true when things are more stable | |
| matrix: | |
| build_type: [Release] | |
| abi: [arm64-v8a, x86_64] # Ensure it builds for real phones (arm64) and the emulator (x86_64) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Configure CMake | |
| run: > | |
| cmake -B build | |
| -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake | |
| -DANDROID_ABI=${{ matrix.abi }} | |
| -DANDROID_PLATFORM=android-21 | |
| -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
| -DSDL_UNIX_CONSOLE_BUILD=ON | |
| -S . | |
| - name: Build | |
| run: cmake --build build --config ${{ matrix.build_type }} |