Skip to content

Commit 9427765

Browse files
committed
Refactor workflow to upload sooner and test separately
1 parent a35cb14 commit 9427765

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/build.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
EnableCompressionInSingleFile: true
3838
IncludeNativeLibrariesForSelfExtract: true
3939
PublishSingleFile: true
40+
41+
- uses: actions/upload-artifact@v4
42+
with:
43+
name: exe-${{ matrix.platform }}
44+
path: src\bin\Release\**\publish\*.exe
4045

4146
- run: msbuild uwp\WinDynamicDesktop.Package.wapproj /v:m /p:AppxBundle=$env:AppxBundle /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:UapAppxPackageBuildMode /p:UseTemporarySignCert=$env:UseTemporarySignCert
4247
env:
@@ -46,15 +51,23 @@ jobs:
4651
UapAppxPackageBuildMode: SideloadOnly
4752
UseTemporarySignCert: true
4853

49-
- uses: actions/upload-artifact@v4
50-
with:
51-
name: exe-${{ matrix.platform }}
52-
path: src\bin\Release\**\publish\*.exe
53-
5454
- uses: actions/upload-artifact@v4
5555
with:
5656
name: msix-${{ matrix.platform }}
5757
path: uwp\AppPackages\**\*.msix
58-
58+
59+
test:
60+
runs-on: windows-latest
61+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
62+
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- uses: actions/setup-dotnet@v4
67+
with:
68+
dotnet-version: 8.0.x
69+
70+
- run: dotnet restore src\WinDynamicDesktop.sln
71+
5972
- run: dotnet test --verbosity normal
6073
working-directory: test

0 commit comments

Comments
 (0)