Skip to content

Commit 3d99027

Browse files
Update winui-build-test.yml
1 parent c5f6ec5 commit 3d99027

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
name: WinUI Build Test
1+
name: Build WinUI3Crash
22

33
on:
44
workflow_dispatch:
55

66
jobs:
77
build:
88
runs-on: windows-latest
9-
permissions:
10-
contents: read
119

1210
steps:
13-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v3
1412

15-
- name: Setup MSBuild
16-
uses: microsoft/setup-msbuild@v2
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: '8.0.x'
1717

18-
- name: Restore
19-
run: nuget restore WinUI3Crash.sln
18+
- name: Restore dependencies
19+
run: dotnet restore WinUI3Crash/WinUI3Crash.csproj -r win10-x64
2020

2121
- name: Build
22-
run: msbuild WinUI3Crash.sln /p:Configuration=Release
22+
run: dotnet build WinUI3Crash/WinUI3Crash.csproj -c Release
23+
24+
- name: Publish
25+
run: dotnet publish WinUI3Crash/WinUI3Crash.csproj -c Release -r win10-x64 --self-contained /p:PublishReadyToRun=false

0 commit comments

Comments
 (0)