mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Use clang-format 18.1.8 binary to match local version
This commit is contained in:
parent
b035b12272
commit
ccb9a608b4
16
.github/workflows/format-check-new.yml
vendored
16
.github/workflows/format-check-new.yml
vendored
@ -13,16 +13,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup clang-format
|
- name: Setup clang-format
|
||||||
run: |
|
run: |
|
||||||
# Ubuntu 24.04 has clang-format-18 in its default repos
|
# Download clang-format 18.1.8 binary directly
|
||||||
sudo apt-get update
|
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
|
||||||
sudo apt-get install -y clang-format-18
|
tar -xf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
||||||
# Make clang-format-18 the default clang-format
|
# Install only clang-format binary
|
||||||
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 100
|
sudo cp clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format /usr/local/bin/clang-format
|
||||||
# Verify we're using the right version
|
# Ensure it's first in PATH
|
||||||
|
export PATH=/usr/local/bin:$PATH
|
||||||
|
# Verify version
|
||||||
which clang-format
|
which clang-format
|
||||||
clang-format --version
|
clang-format --version
|
||||||
# Double check the actual path
|
|
||||||
ls -la /usr/bin/clang-format*
|
|
||||||
|
|
||||||
- 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