emulation fixes, llarm-asm fixes, and incremental linux kernel support #31
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-asm build | |
| on: | |
| push: | |
| paths: | |
| - 'llarm-asm/**/*.cpp' | |
| - 'llarm-asm/**/*.hpp' | |
| - 'llarm-asm/**/CMakeLists.txt' | |
| - 'llarm-asm/**/*.cmake' | |
| - 'llarm-asm/**/*.cmake.in' | |
| - 'cmake/**' | |
| - 'shared/**' | |
| - '.github/workflows/llarm-asm.yml' | |
| pull_request: | |
| paths: | |
| - 'llarm-asm/**/*.cpp' | |
| - 'llarm-asm/**/*.hpp' | |
| - 'llarm-asm/**/CMakeLists.txt' | |
| - 'llarm-asm/**/*.cmake' | |
| - 'llarm-asm/**/*.cmake.in' | |
| - 'cmake/**' | |
| - 'shared/**' | |
| - '.github/workflows/llarm-asm.yml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - 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: Configure | |
| run: | | |
| cmake -S llarm-asm -B llarm-asm/build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
| - name: Build | |
| run: cmake --build llarm-asm/build --parallel | |
| - name: Install clang-tidy | |
| run: sudo apt-get install -y clang-tidy clang-tools | |
| - name: Resolve changed files | |
| id: changed | |
| run: | | |
| CHANGED=$(git diff HEAD~1 --name-only) | |
| CPPS=$(echo "$CHANGED" | grep -E "^llarm-asm/src/.*\.cpp$" || true) | |
| HPPS=$(echo "$CHANGED" | grep -E "^llarm-asm/.*\.hpp$" || true) | |
| if [ -n "$HPPS" ]; then | |
| echo "filter=llarm-asm/src/.*\\.cpp" >> "$GITHUB_OUTPUT" | |
| elif [ -n "$CPPS" ]; then | |
| echo "filter=$(echo "$CPPS" | tr '\n' '|' | sed 's/|$//')" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "filter=" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: clang-tidy | |
| if: steps.changed.outputs.filter != '' | |
| continue-on-error: true | |
| run: | | |
| run-clang-tidy \ | |
| -p llarm-asm/build \ | |
| -extra-arg=-Wno-unknown-warning-option \ | |
| -header-filter="llarm-asm/src/.*\\.hpp" \ | |
| "${{ steps.changed.outputs.filter }}" |