diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 1b74e7006..e7caba461 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -13,18 +13,7 @@ jobs: - name: Install clang format run: | - # gets us newer clang - sudo bash -c "cat >> /etc/apt/sources.list" << LLVMAPT - # 3.8 - deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main - deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main - LLVMAPT - - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - - - sudo apt-get -qq update - - sudo apt-get install -y clang-format-8 + sudo apt-get install -y clang-format-10 - name: Check the Formatting run: | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e8ff9424..b7fe38873 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -352,7 +352,7 @@ jobs: path: ./release/*.dmg ubuntu64: name: 'Linux/Ubuntu 64-bit' - runs-on: [ubuntu-latest] + runs-on: [ubuntu-18.04] steps: - name: 'Checkout' uses: actions/checkout@v2.3.3 diff --git a/formatcode.sh b/formatcode.sh index 9a0c1338b..f776cf229 100755 --- a/formatcode.sh +++ b/formatcode.sh @@ -19,7 +19,9 @@ if [[ $OS = "Linux" || $OS = "Darwin" ]] ; then fi # Discover clang-format -if type clang-format-8 2> /dev/null ; then +if type clang-format-10 2> /dev/null ; then + CLANG_FORMAT=clang-format-10 +elif type clang-format-8 2> /dev/null ; then CLANG_FORMAT=clang-format-8 else CLANG_FORMAT=clang-format