mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
Simplify clang-format setup and fix npm warning
This commit is contained in:
parent
a0a86af560
commit
b035b12272
13
.github/workflows/format-check-new.yml
vendored
13
.github/workflows/format-check-new.yml
vendored
@ -11,17 +11,18 @@ jobs:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install clang-format 18
|
||||
- name: Setup clang-format
|
||||
run: |
|
||||
# Install clang-format-18 from LLVM apt repository
|
||||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
||||
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list
|
||||
# Ubuntu 24.04 has clang-format-18 in its default repos
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-format-18
|
||||
# Create symlink
|
||||
# Make clang-format-18 the default clang-format
|
||||
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 100
|
||||
# Verify version
|
||||
# Verify we're using the right version
|
||||
which clang-format
|
||||
clang-format --version
|
||||
# Double check the actual path
|
||||
ls -la /usr/bin/clang-format*
|
||||
|
||||
- name: Install dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
|
||||
@ -23,7 +23,7 @@ npm run format
|
||||
popd > /dev/null
|
||||
|
||||
pushd ../tests > /dev/null
|
||||
npm run format -r
|
||||
npm run format
|
||||
popd > /dev/null
|
||||
|
||||
# Return to original directory
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user