mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 01:30:06 +00:00
Fixes for clang-format-check
This commit is contained in:
parent
b1f32ab0f5
commit
71d2345e66
1 changed files with 17 additions and 7 deletions
24
.github/workflows/clang-format-check.yml
vendored
24
.github/workflows/clang-format-check.yml
vendored
|
|
@ -13,18 +13,28 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: source
|
fetch-depth: 0
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
- name: Update References
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git fetch origin develop
|
||||||
|
|
||||||
|
- name: Setup Ubuntu Environment
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo apt-get install clang-format-17
|
||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
uses: jayllyz/clang-format-action@v1
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
check: true
|
MERGE_BASE=$(git merge-base origin/develop ${{ github.ref }})
|
||||||
clang-version: 17
|
echo "Comparing against ${MERGE_BASE}"
|
||||||
base-ref: refs/remotes/origin/develop
|
git clang-format-17 --diff --style=file -v ${MERGE_BASE}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue