Merge pull request #22 from kirpy0x/suppress-base-bindings #79
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| build_type: [Debug, Release] | |
| compiler: [gcc, clang] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake ninja-build clang clang-tidy libc++-dev libc++abi-dev | |
| - name: Configure | |
| run: | | |
| TIDY_FLAG=OFF | |
| CMAKE_EXTRA="" | |
| if [ "${{ matrix.compiler }}" = "clang" ]; then | |
| CMAKE_EXTRA="-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=-stdlib=libc++" | |
| TIDY_FLAG=ON | |
| fi | |
| cmake -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
| -DENABLE_CLANG_TIDY=$TIDY_FLAG \ | |
| $CMAKE_EXTRA | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| run: ./build/test-remap && ./build/test-uinput-elite && ./build/test-debug-iface | |
| build-debian12: | |
| runs-on: ubuntu-latest | |
| container: debian:12 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: apt-get update && apt-get install -y cmake g++ ninja-build git | |
| - name: Build | |
| run: | | |
| cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_CLANG_TIDY=OFF | |
| cmake --build build | |
| - name: Test | |
| run: ./build/test-remap && ./build/test-uinput-elite && ./build/test-debug-iface | |