Try using pre-installed clang-format.

This commit is contained in:
Mario Zechner 2021-08-18 19:38:12 +02:00
parent 7bff55f740
commit 51e7a41651
2 changed files with 1 additions and 17 deletions

View File

@ -13,22 +13,6 @@ jobs:
sudo apt update sudo apt update
sudo apt install -y --force-yes curl xz-utils libicu-dev git sudo apt install -y --force-yes curl xz-utils libicu-dev git
- name: Cache Clang
id: cache-clang
uses: actions/cache@v2
with:
path: clang
key: ${{ runner.os }}-clang
- name: Install Clang
if: steps.cache-clang.outputs.cache-hit != 'true'
run: |
curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/clang+llvm-12.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz --output clang.tar.xz
tar -xf clang.tar.xz
mv clang+llvm-12.0.1-x86_64-linux-gnu-ubuntu- clang
sudo rm /usr/bin/clang-format
sudo ln -s /clang/bin/clang-format /usr/bin/clang-format
- name: Install dotnet - name: Install dotnet
uses: actions/setup-dotnet@v1 uses: actions/setup-dotnet@v1
with: with:

View File

@ -26,7 +26,7 @@ spotless {
'spine-sfml/**/*.h', 'spine-sfml/**/*.h',
'spine-ue4/**/*.cpp', 'spine-ue4/**/*.cpp',
'spine-ue4/**/*.h' 'spine-ue4/**/*.h'
clangFormat("12.0.1").style('file') clangFormat('{versionFound}').style('file')
} }
typescript { typescript {