Skip to content

Support for .NET 11 #698

Support for .NET 11

Support for .NET 11 #698

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
- rel/*
pull_request:
branches:
- main
- rel/*
env:
ArtifactsDirectoryName: 'artifacts'
BuildConfiguration: 'Debug'
BuildPlatform: 'Any CPU'
ContinuousIntegrationBuild: 'true'
DotNet8Version: '8.x'
DotNet10Version: '10.x'
DotNet11Version: '11.x'
jobs:
BuildAndTest:
strategy:
matrix:
os: [windows-2022, windows-2025-vs2026, ubuntu-latest, macos-latest]
include:
- os: windows-2022
name: Windows VS2022
- os: windows-2025-vs2026
name: Windows VS2026
- os: ubuntu-latest
name: Linux
- os: macos-latest
name: MacOS
fail-fast: false
name: Build and Test (${{ matrix.name }})
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install .NET ${{ env.DotNet8Version }}, ${{ env.DotNet10Version }} and ${{ env.DotNet11Version }}
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
${{ env.DotNet8Version }}
${{ env.DotNet10Version }}
${{ env.DotNet11Version }}
- name: Build Solution
id: build
run: dotnet build "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/build.binlog"
- name: Run Unit Tests (.NET Framework)
if: ${{ startsWith(matrix.name, 'Windows') && !cancelled() && steps.build.outcome == 'success' }}
run: dotnet test --no-restore --no-build --framework net472 --configuration ${{ env.BuildConfiguration }} --show-stdout Failed --show-stderr Failed
- name: Run Unit Tests (.NET 8)
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: dotnet test --no-restore --no-build --framework net8.0 --configuration ${{ env.BuildConfiguration }} --show-stdout Failed --show-stderr Failed
- name: Run Unit Tests (.NET 10)
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: dotnet test --no-restore --no-build --framework net10.0 --configuration ${{ env.BuildConfiguration }} --show-stdout Failed --show-stderr Failed
- name: Run Unit Tests (.NET 11)
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: dotnet test --no-restore --no-build --framework net11.0 --configuration ${{ env.BuildConfiguration }} --show-stdout Failed --show-stderr Failed
- name: Upload Artifacts
uses: actions/upload-artifact@v7
if: success()
with:
name: ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }}
path: ${{ env.ArtifactsDirectoryName }}