2024-02-23 21:32:32 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 shadPS4 Emulator Project
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2024-02-23 20:57:57 +00:00
|
|
|
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
|
2024-04-29 21:19:12 +00:00
|
|
|
run: |
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
|
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main'
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install clang-format-17
|
2024-02-23 20:57:57 +00:00
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
2024-05-08 11:17:41 +00:00
|
|
|
run: ./.ci/clang-format.sh
|