Skip to content

Commit

Permalink
Update GH upload-artifact version to v4 for format workflow due to v3…
Browse files Browse the repository at this point in the history
… deprecation.
  • Loading branch information
davidetan committed Feb 3, 2025
1 parent 89441ca commit d054440
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d054440

Please sign in to comment.