From a6dba545bb82e7f5a3b6a20c4a5f042fcf4de4dc Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Wed, 18 Mar 2020 12:27:43 -0400 Subject: [PATCH 1/2] clang included now --- .github/workflows/tests.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77ff7d4efc..9c42702137 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,15 +24,6 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@50fbc62 - - name: Get clang-format 8 - env: - DEBIAN_FRONTEND: noninteractive - run: | - APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - - sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main' -y - sudo apt update -y - sudo apt install -y clang-format-8 - sudo ln -s /usr/bin/clang-format-8 /usr/bin/clang-format - name: Clang Format run: ci/check-commit-format.sh From 82f056e7510567f85c741af8f6fb0199583d60b8 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Wed, 18 Mar 2020 13:10:33 -0400 Subject: [PATCH 2/2] ensure we use clang-format-8 --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c42702137..ec7e6b2f30 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,6 +24,10 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@50fbc62 + - name: Get clang-format 8 + env: + DEBIAN_FRONTEND: noninteractive + run: sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 1000 - name: Clang Format run: ci/check-commit-format.sh