Skip to content

Commit

Permalink
optimize cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymGorn committed Oct 23, 2023
1 parent a60f5a2 commit 33d1d0a
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,18 @@ jobs:
name: Build Demo Projects
runs-on: windows-latest

strategy:
matrix:
dotnet-version: ['6.0.x', '7.0.x']

steps:
- uses: actions/checkout@v3

# sets up .NET Core SDK 7, 6
- name: Setup .NET 7, 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
dotnet-version: ${{ matrix.dotnet-version }}

- name: Install MAUI Workloads
run: |
Expand All @@ -130,22 +132,27 @@ jobs:
run: dotnet restore
working-directory: examples

- name: DotNet Build MVC with Blazor Server Demo Project for .net 7
- name: DotNet Build MVC with Blazor Server Demo Project
run: dotnet build --no-restore
working-directory: examples\Cropper.MVC.With.Blazor.Server.Net7
if: matrix.dotnet-version == '7.0.x'

- name: DotNet Build Blazor Server Demo Project for .net 7
- name: DotNet Build Blazor Server Demo Project
run: dotnet build --no-restore
working-directory: examples\Cropper.Blazor.Server.Net7
if: matrix.dotnet-version == '7.0.x'

- name: DotNet Build Blazor MAUI Demo Project for .net 7
- name: DotNet Build Blazor MAUI Demo Project
run: dotnet build --no-restore
working-directory: examples\Cropper.Blazor.MAUI.Net7
if: matrix.dotnet-version == '7.0.x'

- name: DotNet Build Blazor Server Demo Project for .net 6
- name: DotNet Build Blazor Server Demo Project
run: dotnet build --no-restore
working-directory: examples\Cropper.Blazor.Server.Net6
if: matrix.dotnet-version == '6.0.x'

- name: DotNet Build Blazor MAUI Demo Project for .net 6
- name: DotNet Build Blazor MAUI Demo Project
run: dotnet build --no-restore
working-directory: examples\Cropper.Blazor.MAUI.Net6
if: matrix.dotnet-version == '6.0.x'

0 comments on commit 33d1d0a

Please sign in to comment.