summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-02-28 16:52:06 -0300
committerGeorge Marques <george@gmarqu.es>2021-02-28 16:57:34 -0300
commitcba90d630177ce6c57b5537e74ef3eab4e9c1ea2 (patch)
tree439897c2673d4f0af2635abffe73699d0cae6a01 /.github/workflows
parent77d41fa179e40560f1e264ed483638bf51713779 (diff)
downloadredot-cpp-cba90d630177ce6c57b5537e74ef3eab4e9c1ea2.tar.gz
Update clang-format to version 11
This is taken from the Godot repository, so formatting is similar. This updates the style rules as well. Also fix style in files to conform with this version.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d200556..e67b700 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -147,14 +147,22 @@ jobs:
static-checks:
name: Static Checks (clang-format)
- runs-on: ubuntu-16.04
+ runs-on: ubuntu-20.04
steps:
- name: Checkout
- uses: actions/checkout@v2.3.4
-
+ uses: actions/checkout@v2
+
+ - name: Make apt sources.list use the default Ubuntu repositories
+ run: |
+ sudo rm -f /etc/apt/sources.list.d/*
+ sudo cp -f misc/ci/sources.list /etc/apt/sources.list
+ sudo apt-get update
+
- name: Install dependencies
run: |
- sudo apt-get install clang-format-8
+ sudo apt-get install -qq dos2unix recode clang-format-11
+ sudo update-alternatives --remove-all clang-format
+ sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-11 100
- name: Style checks via clang-format
run: |