Files
rocm-systems/projects/hipother/.github/workflows/clang-format.yml
T
systems-assistant[bot] cc7a96c46f Add 'projects/hipother/' from commit 'e9d2abe72168de35233ed77167f7920509c05a8a'
git-subtree-dir: projects/hipother
git-subtree-mainline: d76041b87b
git-subtree-split: e9d2abe721
2025-08-10 02:09:45 +00:00

23 lines
606 B
YAML

name: Clang format check
on:
pull_request:
types: [synchronize, opened]
jobs:
format:
runs-on: AMD-ROCm-Internal-dev1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install clang-format
run: |
sudo apt update && sudo apt install -y clang-format
- name: Run clang-format-check
id: clang-format
run: |
chmod +x .github/hooks/clang-format-check.sh
./.github/hooks/clang-format-check.sh --range "${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"