Skip to content

Commit 21b37ed

Browse files
committed
Update CI to use SDKs for net6.0 and net7.0 and latest action versions
1 parent 35930ba commit 21b37ed

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,20 @@ jobs:
88
os: [ubuntu-latest,windows-latest,macos-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: Setup .NET SDK - 6.0.x
13-
uses: actions/setup-dotnet@v1
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-dotnet@v3
1413
with:
15-
dotnet-version: '6.0.x'
16-
- name: Setup .NET SDK - 5.0.x
17-
uses: actions/setup-dotnet@v1
18-
with:
19-
dotnet-version: '5.0.x'
20-
- name: Setup .NET SDK - 3.1.x
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: '3.1.x'
14+
dotnet-version: |
15+
6.0.x
16+
7.0.x
2417
- name: Install dependencies
2518
run: dotnet restore
2619
- name: Build
2720
run: dotnet build --no-restore --configuration Release
2821
- name: Test
2922
run: dotnet test --no-restore --no-build --configuration Release --logger trx --results-directory "TestResults"
3023
- name: Upload test results
31-
uses: actions/upload-artifact@v2
24+
uses: actions/upload-artifact@v3
3225
with:
3326
name: TestResults
3427
path: TestResults
@@ -37,7 +30,7 @@ jobs:
3730
- name: Pack
3831
run: dotnet pack --no-restore --no-build --configuration Release --version-suffix CI-${{ github.run_id }} --output pkg
3932
- name: Upload package
40-
uses: actions/upload-artifact@v2
33+
uses: actions/upload-artifact@v3
4134
with:
4235
name: LibDeflate-${{ matrix.os }}
4336
path: pkg/*

0 commit comments

Comments
 (0)