mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Try specifying clang-format exe path to spotless
This commit is contained in:
parent
5b09b12564
commit
1ec5c46361
15
.github/workflows/format-check.yml
vendored
15
.github/workflows/format-check.yml
vendored
@ -13,6 +13,20 @@ 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
|
||||||
|
|
||||||
- name: Install dotnet
|
- name: Install dotnet
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
@ -36,6 +50,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: |
|
run: |
|
||||||
|
export CLANGFORMAT=`pwd`/clang/bin/clang-format
|
||||||
export PATH="$PATH:/root/.dotnet/tools"
|
export PATH="$PATH:/root/.dotnet/tools"
|
||||||
./formatters/format.sh
|
./formatters/format.sh
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@ spotless {
|
|||||||
'spine-sfml/**/*.h',
|
'spine-sfml/**/*.h',
|
||||||
'spine-ue4/**/*.cpp',
|
'spine-ue4/**/*.cpp',
|
||||||
'spine-ue4/**/*.h'
|
'spine-ue4/**/*.h'
|
||||||
clangFormat('11.0.0-2~ubuntu20.04.1').style('file')
|
clangFormat().pathToExe("$System.env.CLANGFORMAT").style('file')
|
||||||
}
|
}
|
||||||
|
|
||||||
typescript {
|
typescript {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user