mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
update clang-format to clang-format-11, fixes enum bug
This commit is contained in:
parent
bf41bfa2f7
commit
7d213da88a
6
.github/workflows/clangformat.yml
vendored
6
.github/workflows/clangformat.yml
vendored
@ -2,8 +2,10 @@ on: [pull_request]
|
|||||||
name: clang-format
|
name: clang-format
|
||||||
jobs:
|
jobs:
|
||||||
check-clang-format:
|
check-clang-format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: install clang-format
|
||||||
|
run: sudo apt install clang-format-11
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- name: fetch target ref
|
- name: fetch target ref
|
||||||
run:
|
run:
|
||||||
@ -18,7 +20,7 @@ jobs:
|
|||||||
- name: run git-clang-format and Check if no changes are needed
|
- name: run git-clang-format and Check if no changes are needed
|
||||||
run:
|
run:
|
||||||
|
|
|
|
||||||
git-clang-format-9 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
|
CLANG_FORMAT=clang-format-11 git-clang-format-11 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
|
||||||
cmp -s <(echo no modified files to format) git-clang-format.diff || cmp -s <(echo -n) git-clang-format.diff
|
cmp -s <(echo no modified files to format) git-clang-format.diff || cmp -s <(echo -n) git-clang-format.diff
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
|
Loading…
Reference in New Issue
Block a user