initial clang-tidy implementation #7
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: llarm-cpu | |
| on: | |
| push: | |
| paths: | |
| - 'llarm-cpu/**/*.cpp' | |
| - 'llarm-cpu/**/*.hpp' | |
| - 'llarm-cpu/**/CMakeLists.txt' | |
| - 'llarm-cpu/**/*.cmake' | |
| - 'llarm-cpu/**/*.cmake.in' | |
| - 'llarm-cpu/tests/**' | |
| - 'cmake/**' | |
| - 'shared/**' | |
| pull_request: | |
| paths: | |
| - 'llarm-cpu/**/*.cpp' | |
| - 'llarm-cpu/**/*.hpp' | |
| - 'llarm-cpu/**/CMakeLists.txt' | |
| - 'llarm-cpu/**/*.cmake' | |
| - 'llarm-cpu/**/*.cmake.in' | |
| - 'llarm-cpu/tests/**' | |
| - 'cmake/**' | |
| - 'shared/**' | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install CMake 3.29 | |
| run: | | |
| wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc \ | |
| | gpg --dearmor \ | |
| | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg > /dev/null | |
| echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' \ | |
| | sudo tee /etc/apt/sources.list.d/kitware.list > /dev/null | |
| sudo apt-get update -q | |
| sudo apt-get install -y cmake | |
| - name: Install ARM toolchain and QEMU | |
| run: | | |
| sudo apt-get install -y \ | |
| g++-arm-linux-gnueabi \ | |
| qemu-user | |
| - name: Configure | |
| run: | | |
| cmake -S llarm-cpu -B llarm-cpu/build \ | |
| -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: cmake --build llarm-cpu/build --parallel | |
| - name: Test | |
| run: bash llarm-cpu/tests/run_tests.sh |