mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +08:00
Fix libtinfo dependency for clang-format
This commit is contained in:
parent
ccb9a608b4
commit
a424597170
14
.github/workflows/format-check-new.yml
vendored
14
.github/workflows/format-check-new.yml
vendored
@ -13,16 +13,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup clang-format
|
- name: Setup clang-format
|
||||||
run: |
|
run: |
|
||||||
|
# Install libtinfo5 (required by the Ubuntu 18.04 binary)
|
||||||
|
# Create a symlink since Ubuntu 24.04 has libtinfo6
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libtinfo6
|
||||||
|
sudo ln -sf /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5
|
||||||
|
|
||||||
# Download clang-format 18.1.8 binary directly
|
# Download clang-format 18.1.8 binary directly
|
||||||
wget -q https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang%2Bllvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
wget -q https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang%2Bllvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
||||||
tar -xf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
tar -xf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
||||||
|
|
||||||
# Install only clang-format binary
|
# Install only clang-format binary
|
||||||
sudo cp clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format /usr/local/bin/clang-format
|
sudo cp clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format /usr/local/bin/clang-format
|
||||||
# Ensure it's first in PATH
|
sudo chmod +x /usr/local/bin/clang-format
|
||||||
export PATH=/usr/local/bin:$PATH
|
|
||||||
# Verify version
|
# Verify version
|
||||||
which clang-format
|
/usr/local/bin/clang-format --version
|
||||||
clang-format --version
|
|
||||||
|
|
||||||
- name: Install dotnet
|
- name: Install dotnet
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user