Skip to content

Cleaning up .NET 9 locking using source generator. #273

Cleaning up .NET 9 locking using source generator.

Cleaning up .NET 9 locking using source generator. #273

Workflow file for this run

name: Build
on: [ push, pull_request ]
env:
DOTNET_NOLOGO: 1
NUGET_CERT_REVOCATION_MODE: offline
BUILD_DOTNET_VERSION: 9.0.x
jobs:
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.BUILD_DOTNET_VERSION }}
- name: Restore
run: dotnet restore src/ZeroLog.sln
- name: Build
run: dotnet build --configuration Release --no-restore src/ZeroLog.sln
- name: Pack
run: dotnet pack --configuration Release --no-build src/ZeroLog.sln
- name: Test
run: dotnet test --configuration Release --no-build src/ZeroLog.sln
- name: Upload NuGet
uses: actions/upload-artifact@v4
with:
name: NuGet
path: output/*.nupkg
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.BUILD_DOTNET_VERSION }}
- name: Restore
run: dotnet restore src/ZeroLog.sln
- name: Build
run: dotnet build --configuration Release --no-restore src/ZeroLog.sln
- name: Test ZeroLog
run: dotnet test --configuration Release --no-build src/ZeroLog.Tests/ZeroLog.Tests.csproj
- name: Test Analyzers
run: dotnet test --configuration Release --no-build src/ZeroLog.Analyzers.Tests/ZeroLog.Analyzers.Tests.csproj