From b974a7ed81558cdd035b7a348197f89ebbf8765f Mon Sep 17 00:00:00 2001 From: Nils Date: Fri, 20 Mar 2020 12:08:19 +0000 Subject: [PATCH] Remove installation of `clang` (#1244) This is possible thanks to https://github.com/actions/virtual-environments/pull/447 --- .github/workflows/format.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 182d231c..52580901 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -16,12 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Install dependencies - run: | - curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository -y 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main' - sudo apt install clang-format-9 - name: Format code run: | - find src/ -type f -name '*.c' -name '*.c' | xargs clang-format-9 -i + find src/ -type f -name '*.c' -name '*.c' | xargs clang-format -i git diff-index --quiet HEAD -- || (git diff && exit 1)