Skip to content

Commit

Permalink
ci: make it parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrojesus-work committed Apr 26, 2024
1 parent 59e1487 commit 2fdb33d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ jobs:
run: |
dotnet test src/Resizetizer/test/UnitTests/Resizetizer.UnitTests.csproj
validation_5_2:
name: Validate 5.2 Samples
needs: build_tool
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: NuGet
path: samples/packages

- name: Validate 5.2 Samples app (Debug)
run: |
& dotnet build -c Debug /p:RunAOTCompilation=false /p:WasmShellILLinkerEnabled=false /bl:.\logs\sample-5.2-Debug.binlog samples\5.2\Uno52ResizetizerTests\Uno52ResizetizerTests.sln
Expand All @@ -100,6 +115,28 @@ jobs:
run: |
& dotnet build -c Release /p:WindowsAppSDKSelfContained=false /p:WindowsPackageType=None /p:RunAOTCompilation=false /p:WasmShellILLinkerEnabled=false /bl:.\logs\sample-5.2-Release-incremental.binlog samples\5.2\Uno52ResizetizerTests\Uno52ResizetizerTests.sln
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: logs
path: .\logs

validation_5_1:
name: Validate 5.1 Samples
needs: build_tool
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: NuGet
path: samples/packages

- name: Validate 5.1 Samples app
run: |
$msbuild = vswhere -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
Expand All @@ -123,6 +160,8 @@ jobs:
runs-on: windows-latest
needs:
- build_tool
- validation_5_1
- validation_5_2
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 2fdb33d

Please sign in to comment.