mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 19:11:36 +08:00
Update GH upload-artifact version to v4 for format workflow due to v3 deprecation.
This commit is contained in:
parent
89441caabd
commit
d054440f7f
34
.github/workflows/format-check.yml
vendored
34
.github/workflows/format-check.yml
vendored
@ -7,14 +7,14 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
steps:
|
||||
|
||||
- name: Install OS dependencies (needed for act on ubuntu-latest)
|
||||
- name: Install OS dependencies (needed for act on ubuntu-latest)
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y --force-yes curl xz-utils libicu-dev git dos2unix libncurses5
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache Clang
|
||||
id: cache-clang
|
||||
@ -33,33 +33,33 @@ jobs:
|
||||
- name: Install dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: "6.0.x"
|
||||
- run: dotnet tool install -g dotnet-format
|
||||
|
||||
- name: Install Node and dependenceis
|
||||
uses: actions/setup-node@v3
|
||||
dotnet-version: "6.0.x"
|
||||
- run: dotnet tool install -g dotnet-format
|
||||
|
||||
- name: Install Node and dependenceis
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16"
|
||||
- run: npm install -g typescript typescript-formatter
|
||||
- run: npm install -g typescript typescript-formatter
|
||||
|
||||
- name: Install JDK
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: "16"
|
||||
|
||||
- name: Format
|
||||
run: |
|
||||
java-version: "16"
|
||||
|
||||
- name: Format
|
||||
run: |
|
||||
export CLANGFORMAT=`pwd`/clang/bin/clang-format
|
||||
export PATH="$PATH:/root/.dotnet/tools"
|
||||
dotnet-format --version
|
||||
dotnet-format --version
|
||||
./formatters/format.sh
|
||||
find . -type f -name '*.cs' -exec perl -pi -e 's/\r\n/\n/g' '{}' +
|
||||
git diff
|
||||
git diff > format-diff.txt
|
||||
git diff > format-diff.txt
|
||||
|
||||
- name: Archive formatting result
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: format-diff
|
||||
path: format-diff.txt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user