Dosyalar
rocm-systems/.github/workflows/clang-format.yml
T
Lytovchenko, Danylo ccb31fdf9d SWDEV-123456 - use only specific lines (#573)
* SWDEV-123456 - use only specific lines

* SWDEV-123456 - only run clang on diff between PR target and current
2025-06-25 10:54:29 +02:00

23 satır
572 B
YAML

name: Clang format check
on:
pull_request:
types: [synchronize, opened]
jobs:
format:
runs-on: hip-clr-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.sha }}"