mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 08:50:04 +00:00
Clang format check
This commit is contained in:
parent
dbfacdfd28
commit
b1f32ab0f5
1 changed files with 30 additions and 0 deletions
30
.github/workflows/clang-format-check.yml
vendored
Normal file
30
.github/workflows/clang-format-check.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: clang-format-check
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'develop'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
# Cancel in-progress jobs for the same pull request
|
||||||
|
group: ${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: source
|
||||||
|
submodules: false
|
||||||
|
|
||||||
|
- name: Check Formatting
|
||||||
|
uses: jayllyz/clang-format-action@v1
|
||||||
|
with:
|
||||||
|
check: true
|
||||||
|
clang-version: 17
|
||||||
|
base-ref: refs/remotes/origin/develop
|
||||||
Loading…
Add table
Add a link
Reference in a new issue