mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Convert crlf to lf in *.cs files after formatting so git status doesn't report wrong changes.
This commit is contained in:
parent
6a93555805
commit
4588d74428
16
.github/workflows/format-check.yml
vendored
16
.github/workflows/format-check.yml
vendored
@ -8,14 +8,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- run: git config --global core.autocrlf false
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- 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
|
||||
sudo apt install -y --force-yes curl xz-utils libicu-dev git dos2unix
|
||||
git config --global core.autocrlf input
|
||||
git config --global core.eol
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Cache Clang
|
||||
id: cache-clang
|
||||
@ -54,10 +54,12 @@ jobs:
|
||||
run: |
|
||||
export CLANGFORMAT=`pwd`/clang/bin/clang-format
|
||||
export PATH="$PATH:/root/.dotnet/tools"
|
||||
./formatters/format.sh
|
||||
git diff
|
||||
./formatters/format.sh
|
||||
find . -type f -name '*.php' -exec dos2unix '{}' +
|
||||
git diff > format-diff.txt
|
||||
|
||||
- run: spine-csharp/src/Atlas.cs
|
||||
|
||||
- name: Archive formatting result
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user