Skip to content

Commit

Permalink
More mult-targeting
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbl committed Dec 6, 2024
1 parent d674bf2 commit bd66d97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
dotnet-version: ['5.0', '6.0', '7.0', '8.0']
framework-version: ['netstandard2.0', 'net6.0']
exclude:
- os: macos-latest
dotnet-version: 5.0
- dotnet-version: 5.0
framework-version: net6.0
- dotnet-version: 6.0
framework-version: netstandard2.0
- dotnet-version: 7.0
framework-version: netstandard2.0
- dotnet-version: 8.0
framework-version: netstandard2.0
fail-fast: false
runs-on: ${{ matrix.os }}
name: Build and run tests
Expand All @@ -32,9 +41,9 @@ jobs:
- name: Restore test project
run: dotnet restore --no-dependencies -p:TargetFramework=net${{ matrix.dotnet-version }} --verbosity normal QrCodeGeneratorTest
- name: Restore library
run: dotnet restore --verbosity normal QrCodeGenerator
run: dotnet restore -p:TargetFramework=${{ matrix.framework-version }} --verbosity normal QrCodeGenerator
- name: Build library
run: dotnet build --configuration Release --no-restore -p:TargetFramework=netstandard2.0 --verbosity normal QrCodeGenerator
run: dotnet build --configuration Release -p:TargetFramework=${{ matrix.framework-version }} --no-restore --verbosity normal QrCodeGenerator
- name: Build test project
run: dotnet build --configuration Release --no-restore -p:TargetFramework=net${{ matrix.dotnet-version }} --verbosity normal QrCodeGeneratorTest
- name: Run tests
Expand All @@ -47,4 +56,4 @@ jobs:
path: TestResults-${{ matrix.os }}-dotnet_${{ matrix.dotnet-version }}.html
- name: Create and validate NuGet package
run: dotnet pack --no-build --verbosity normal
if: ${{ matrix.os != 'macos-latest' }}
if: ${{ (matrix.os != 'macos-latest') && (matrix.dotnet-version != '5.0') }}
2 changes: 1 addition & 1 deletion .github/workflows/demos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Create local NuGet source
Expand Down

0 comments on commit bd66d97

Please sign in to comment.