File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111
12- runs-on : windows-latest
12+ strategy :
13+ matrix :
14+ os : [ubuntu-latest, windows-latest]
15+ runs-on : ${{ matrix.os }}
1316
1417 steps :
15- - uses : actions/checkout@v2
16- - name : Setup .NET Core
17- uses : actions/setup-dotnet@v1
18+ - uses : actions/checkout@v4
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
1821 with :
19- dotnet-version : 3.1.301
20- - name : Install dependencies
21- run : |
22- nuget sources add -name "NuGet official package source" -Source https://api.nuget.org/v3/index.json
23- dotnet restore
22+ dotnet-version : 8.0.x
23+ cache : true
24+ - name : Restore
25+ run : dotnet restore
2426 - name : Build
2527 run : dotnet build --configuration Release --no-restore
2628 - name : Test
Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111
12- runs-on : windows-latest
12+ strategy :
13+ matrix :
14+ os : [ubuntu-latest, windows-latest]
15+ runs-on : ${{ matrix.os }}
1316
1417 steps :
15- - uses : actions/checkout@v2
16- - name : Setup .NET Core
17- uses : actions/setup-dotnet@v1
18+ - uses : actions/checkout@v4
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
1821 with :
19- dotnet-version : 3.1.301
20- - name : Install dependencies
21- run : |
22- nuget sources add -name "NuGet official package source" -Source https://api.nuget.org/v3/index.json
23- dotnet restore
22+ dotnet-version : 8.0.x
23+ cache : true
24+ - name : Restore
25+ run : dotnet restore
2426 - name : Build
2527 run : dotnet build --configuration Release --no-restore
2628 - name : Test
Original file line number Diff line number Diff line change 99 publish-nuget :
1010 runs-on : windows-latest
1111 steps :
12- - uses : actions/checkout@v2
13- - name : Setup .NET Core
14- uses : actions/setup-dotnet@v1
12+ - uses : actions/checkout@v4
13+ - name : Setup .NET
14+ uses : actions/setup-dotnet@v4
1515 with :
16- dotnet-version : 3.1.301
17- - name : Install dependencies
18- run : |
19- nuget sources add -name "NuGet official package source" -Source https://api.nuget.org/v3/index.json
20- dotnet restore
16+ dotnet-version : 8.0.x
17+ cache : true
18+ - name : Restore
19+ run : dotnet restore
2120 - name : Build
2221 run : dotnet build --configuration Release --no-restore
2322 - name : Publish to NuGet
You can’t perform that action at this time.
0 commit comments