From 7d213da88acb6dfbdcae799dba1d8e9c05490c67 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Thu, 28 Jan 2021 21:47:11 +0100 Subject: [PATCH] update clang-format to clang-format-11, fixes enum bug --- .github/workflows/clangformat.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clangformat.yml b/.github/workflows/clangformat.yml index b959fe92..59beb928 100644 --- a/.github/workflows/clangformat.yml +++ b/.github/workflows/clangformat.yml @@ -2,8 +2,10 @@ on: [pull_request] name: clang-format jobs: check-clang-format: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: + - name: install clang-format + run: sudo apt install clang-format-11 - uses: actions/checkout@main - name: fetch target ref run: @@ -18,7 +20,7 @@ jobs: - name: run git-clang-format and Check if no changes are needed 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 - uses: actions/upload-artifact@v1 if: failure()