mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 01:54:31 +00:00
* code: Add clang format target, rules and CI workflow * code: Run clang format on sources
22 lines
476 B
YAML
22 lines
476 B
YAML
name: Clang Format
|
|
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
clang-format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install
|
|
run: sudo apt-get install clang-format-15
|
|
- name: Build
|
|
env:
|
|
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
|
run: ./.ci/clang-format.sh
|