From 29633f9f5fd06c4195c5c83eaa9a59c575a6056d Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Tue, 28 Jul 2020 19:43:10 +0300 Subject: [PATCH 1/2] [GitHub Actions] Uplift clang-format version to 10 --- .github/workflows/clang-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index c1b4ea99066f..7d38f0aba505 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 2 - name: Get clang-format first - run: sudo apt-get install -yqq clang-format-9 + run: sudo apt-get install -yqq clang-format-10 - name: Run clang-format for the patch run: | From 141dbf465ccf6ceb9ee24c66e286b00fc1cacf87 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Tue, 28 Jul 2020 19:50:45 +0300 Subject: [PATCH 2/2] Fixed clang-format binary name in the script. --- .github/workflows/clang-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 7d38f0aba505..3aeabb036ad5 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -18,7 +18,7 @@ jobs: - name: Run clang-format for the patch run: | - git diff -U0 --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} -- | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format-9 > ./clang-format.patch + git diff -U0 --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} -- | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format-10 > ./clang-format.patch # Add patch with formatting fixes to CI job artifacts - uses: actions/upload-artifact@v1