Skip to content

Add .NET 8-10 targets #51

Add .NET 8-10 targets

Add .NET 8-10 targets #51

Workflow file for this run

name: .NET
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET SDKs
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: Pack NuGet packages
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest'
run: dotnet pack -c Release --no-build --output nupkgs
- name: Upload NuGet packages
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: nupkgs/
retention-days: 30