Skip to content

Commit 6e6a0bf

Browse files
committed
GHA: fix some deprecation warnings by updating actions
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, nuget/setup-nuget@v1, actions/setup-dotnet@v3, actions/setup-java@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "nupkg". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
1 parent e49c44b commit 6e6a0bf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/dotnet.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
winBuild:
1414
runs-on: windows-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
- uses: nuget/setup-nuget@v1
19+
- uses: nuget/setup-nuget@v2
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v3
21+
uses: actions/setup-dotnet@v4
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Set up JDK 11
25-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2626
with:
2727
distribution: 'temurin'
2828
java-version: '11'
@@ -37,19 +37,19 @@ jobs:
3737
- name: Build sample
3838
run: dotnet build ./Source/OxyplotMauiSample/OxyplotMauiSample.csproj /p:Configuration=Release /t:restore,build /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
3939
- name: Upload packages
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: nupkg
4343
path: ./Source/*/nuget/*.nupkg
4444

4545
macBuild:
4646
runs-on: macos-13
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 0
5151
- name: Setup .NET
52-
uses: actions/setup-dotnet@v3
52+
uses: actions/setup-dotnet@v4
5353
with:
5454
dotnet-version: 8.0.x
5555
- name: Setup XCode

0 commit comments

Comments
 (0)