From 862e778343af6dc2f4ce8e043ec880cb2bff22ef Mon Sep 17 00:00:00 2001 From: Gornytskyi Maxim <50423072+MaxymGorn@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:18:33 +0300 Subject: [PATCH] Optimize cd pipeline (#240) ## Target Optimize cd pipeline #### Open Questions ## Checklist - [ ] Documentation updated - [x] Tests cover new or modified code - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] New dependencies added - [ ] Includes breaking changes - [ ] Version bumped ## Visuals --- .github/workflows/cd.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8e7d442f..a1a876e9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -111,6 +111,10 @@ jobs: name: Build Demo Projects runs-on: windows-latest + strategy: + matrix: + dotnet-version: ['6.0.x', '7.0.x'] + steps: - uses: actions/checkout@v3 @@ -118,9 +122,7 @@ jobs: - 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: | @@ -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'