Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm committed Jan 29, 2024
1 parent e6ee29a commit 4629ea2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ env:

jobs:
get-version:
uses: kzrnm/dotnet-actions/.github/workflows/get-version.yml@v1
uses: kzrnm/dotnet-actions/.github/workflows/get-version.yml@v2
with:
project-path: Directory.Build.props

format:
uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v1
uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v2
with:
target: ac-library-csharp.sln
dotnet-version: |
3.0.x
3.1.x
7.0.x
test:
uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v1
uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v2
with:
target: ac-library-csharp.sln
test-logger: GitHubActions
Expand All @@ -48,7 +48,7 @@ jobs:
publish:
needs: [get-version, test, format, build-verify]
if: ${{ needs.get-version.outputs.is-new == 'true' }}
uses: kzrnm/dotnet-actions/.github/workflows/publish.yml@v1
uses: kzrnm/dotnet-actions/.github/workflows/publish.yml@v2
with:
artifact-name: dist
version: ${{ needs.get-version.outputs.version }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/reusable_verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
build-resolve:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.0.x
3.1.x
7.0.x
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Build.props') }}
Expand Down Expand Up @@ -69,13 +69,13 @@ jobs:
with:
file: verify_files.json
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binary-${{github.sha}}
path: Test/ac-library-csharp.LibraryChecker/bin/Release

- name: Upload packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: inputs.upload-artifact
with:
name: dist
Expand All @@ -92,7 +92,7 @@ jobs:
index:
["0", "1", "2", "3", "4", "5"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v1
Expand All @@ -103,20 +103,20 @@ jobs:
- name: Download verify_files.json
uses: competitive-verifier/actions/download-verify-artifact@v1

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.0.x
3.1.x
7.0.x
- name: Download binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: binary-${{github.sha}}
path: Test/ac-library-csharp.LibraryChecker/bin/Release

- name: Verify
uses: competitive-verifier/actions/verify@v1
uses: competitive-verifier/actions/verify@v2
with:
destination: ${{runner.temp}}/result.json
split-size: ${{ env.SPLIT_SIZE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ env:

jobs:
format:
uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v1
uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v2
with:
target: ac-library-csharp.sln
dotnet-version: 7.0.x
test:
uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v1
uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v2
with:
target: ac-library-csharp.sln
test-logger: GitHubActions
Expand Down

0 comments on commit 4629ea2

Please sign in to comment.