Files
rgbds/.github/workflows/check-format.yml
T
Rangi a6a70bb7e6 Format code with clang-format 21 (#2247)
Use `ubuntu-latest` not `ubuntu-slim` for check-format.yml;
`ubuntu-slim` is still Ubuntu 24.04 with clang-format 18.
2026-11-20 23:58:53 -05:00

26 lines
623 B
YAML

name: Code format checking
on: pull_request
concurrency:
group: ${{github.workflow}}-${{github.event.pull_request.number || github.ref}}
cancel-in-progress: true
env:
# Force colored output (see https://bixense.com/clicolors/ and https://force-color.org/)
TERM: xterm-256color
CLICOLOR: 1
CLICOLOR_FORCE: 1
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v7
- name: Install clang-format
run: |
sudo apt install -Uyq clang-format
- name: Check format
run: |
.github/scripts/check-format.sh