Skip to content

Commit

Permalink
Update CI to use SDKs for net6.0 and net7.0 and latest action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jzebedee committed May 14, 2023
1 parent 35930ba commit 21b37ed
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,20 @@ jobs:
os: [ubuntu-latest,windows-latest,macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET SDK - 6.0.x
uses: actions/setup-dotnet@v1
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Setup .NET SDK - 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup .NET SDK - 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
dotnet-version: |
6.0.x
7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-restore --no-build --configuration Release --logger trx --results-directory "TestResults"
- name: Upload test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: TestResults
path: TestResults
Expand All @@ -37,7 +30,7 @@ jobs:
- name: Pack
run: dotnet pack --no-restore --no-build --configuration Release --version-suffix CI-${{ github.run_id }} --output pkg
- name: Upload package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: LibDeflate-${{ matrix.os }}
path: pkg/*

0 comments on commit 21b37ed

Please sign in to comment.