From 177ca4aea244aeb4b1b4f39f825b2e20631658b0 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 13 Mar 2021 17:02:04 +0100 Subject: [PATCH] CI: Build on Ubuntu 18.04, use newer clang-format. (#139) --- .github/workflows/build.yml | 4 ++-- .github/workflows/clang-format.yml | 13 +------------ CI/formatcode.sh | 4 +++- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6c39225..0de0eb61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -102,7 +102,7 @@ jobs: path: ./nightly/*.pkg ubuntu64: name: 'Linux/Ubuntu 64-bit' - runs-on: [ubuntu-latest] + runs-on: [ubuntu-18.04] steps: - name: Checkout uses: actions/checkout@v2.3.4 @@ -271,7 +271,7 @@ jobs: release: needs: [macos64, ubuntu64, windows] name: 'Create Release' - runs-on: [ubuntu-latest] + runs-on: [ubuntu-18.04] steps: - name: "Checkout plugin" uses: actions/checkout@v2.3.4 diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index fcf82b94..636f9d7b 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/CI/formatcode.sh b/CI/formatcode.sh index 6999752f..72bcf941 100755 --- a/CI/formatcode.sh +++ b/CI/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