|
@@ -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
|