docs: re-root the upgrade-checklist file references to llama/ in CLAU… #276
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
| # SPDX-FileCopyrightText: 2026 Bernard Ladenthin <bernard.ladenthin@gmail.com> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| name: clang-format | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| # Enforces a single, pinned clang-format across all C++ sources so formatting is | |
| # reproducible between contributors and CI. Bump CLANG_FORMAT_VERSION here and in | |
| # CLAUDE.md (Code Formatting) together, then reformat the tree with the same version. | |
| env: | |
| CLANG_FORMAT_VERSION: "22.1.5" | |
| jobs: | |
| clang-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install pinned clang-format | |
| # --only-binary :all: forces pip to install from a prebuilt wheel and never run a | |
| # source package's setup.py at install time (SonarCloud GHA security rule). clang-format | |
| # ships manylinux wheels, so this resolves normally on the ubuntu runner. | |
| run: | | |
| pip install --only-binary :all: "clang-format==${CLANG_FORMAT_VERSION}" | |
| - name: Check C++ formatting | |
| run: | | |
| clang-format --version | |
| # All hand-written C++ sources; the generated JNI header (llama/src/main/cpp/jllama.h, | |
| # produced by `javac -h`) is intentionally excluded. Sources live in the `llama/` | |
| # reactor module; clang-format finds llama/.clang-format by walking up from each file. | |
| files=$(find llama/src/main/cpp llama/src/test/cpp -type f \( -name '*.cpp' -o -name '*.hpp' \) | sort) | |
| echo "Checking:"; echo "$files" | |
| clang-format --dry-run --Werror $files |