Skip to content

Commit

Permalink
Optimize cd pipeline (#240)
Browse files Browse the repository at this point in the history
## Target
<!--
  Why are you making this change?
 -->
Optimize cd pipeline
#### Open Questions
<!-- OPTIONAL
- [ ] Use the GitHub checklists to spark discussion on issues that may
arise from your approach. Please tick the box and explain your answer.
-->

## Checklist
<!--
It serves as a gentle reminder for common tasks. Confirm it's done and
check everything that applies.
-->
- [ ] 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
<!-- OPTIONAL
Show results both before and after this change. When the output changes,
it can be a screenshot of a trace, metric, or log illustrating the
change.
-->
  • Loading branch information
MaxymGorn authored Oct 23, 2023
1 parent a60f5a2 commit 862e778
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 862e778

Please sign in to comment.