mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-08 08:14:53 +08:00
Fix clang format lookup for spotless
It checks for /usr/bin/clang-format before looking into the PATH...
This commit is contained in:
parent
5c06c2be2f
commit
5557df3d4e
7
.github/workflows/format-check.yml
vendored
7
.github/workflows/format-check.yml
vendored
@ -25,7 +25,9 @@ jobs:
|
||||
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
|
||||
mv clang+llvm-12.0.1-x86_64-linux-gnu-ubuntu- clang
|
||||
rm /usr/bin/clang-format
|
||||
ln -s /clang/bin/clang-format /usr/bin/clang-format
|
||||
|
||||
- name: Install dotnet
|
||||
uses: actions/setup-dotnet@v1
|
||||
@ -49,8 +51,7 @@ jobs:
|
||||
java-version: "16"
|
||||
|
||||
- name: Format
|
||||
run: |
|
||||
export PATH=`pwd`/clang/bin/:$PATH
|
||||
run: |
|
||||
export PATH="$PATH:/root/.dotnet/tools"
|
||||
./formatters/format.sh
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user