Update remaining net6.0 references to net8.0. #273
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
ci: | |
name: Build on ${{ matrix.os }} - ${{ matrix.configuration }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-latest, macos-latest, ubuntu-latest ] | |
configuration: [ Debug, Release ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.300 | |
- name: Build WTG.Analyzers | |
run: dotnet build src --configuration ${{ matrix.configuration }} | |
- name: Build NuGet Package | |
run: dotnet pack src --configuration ${{ matrix.configuration }} --no-build -p:CommitID=${{ github.sha }} | |
- name: Run Tests (net472) | |
if: matrix.configuration == 'Debug' && matrix.os == 'windows-latest' | |
run: dotnet test src --no-build --framework net472 | |
- name: Run Tests (net8.0) | |
if: matrix.configuration == 'Debug' | |
run: dotnet test src --no-build --framework net8.0 | |
nupkg: | |
name: Create NuGet Package | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.300 | |
- name: Build NuGet Package | |
run: dotnet pack src -p:CommitID=${{ github.sha }} | |
- name: Upload NuGet Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nuget-packages | |
path: 'Bin/*.nupkg' |