uacpi: Update to 1.0 #308
This file contains 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: clang-format Check | |
on: | |
pull_request: | |
types: [opened, review_requested, synchronize] | |
# Only trigger if C source files have been changed. | |
paths: | |
- "**.c" | |
- "**.h" | |
push: | |
branches: | |
- main | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Filter only files changed by the PR. | |
- name: Filter changed files | |
id: filter | |
uses: dorny/paths-filter@v3 | |
with: | |
list-files: csv | |
filters: | | |
c: | |
- '**.c' | |
h: | |
- '**.h' | |
# Check code. | |
- name: Run clang-format style check for C sources. | |
if: steps.filter.outputs.c == 'true' | |
uses: marv7000/clang-format-github-action@v1 | |
with: | |
sources: ${{ steps.filter.outputs.c_files }} | |
style: file | |
- name: Run clang-format style check for C headers. | |
if: steps.filter.outputs.h == 'true' | |
uses: marv7000/clang-format-github-action@v1 | |
with: | |
sources: ${{ steps.filter.outputs.h_files }} | |
style: file |