Skip to content

Update winui-build-test.yml #15

Update winui-build-test.yml

Update winui-build-test.yml #15

name: Build WinUI3Crash
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore WinUI3Crash.csproj -r win-x64
- name: Build
run: dotnet build WinUI3Crash.csproj -c Release -r win-x64
- name: Publish
run: dotnet publish WinUI3Crash.csproj -c Release -r win-x64 -p:Platform=x64 --self-contained true -p:PublishTrimmed=false -p:PublishReadyToRun=false
- name: List publish directory (for debugging)
run: |
echo "Listing bin directory structure:"
Get-ChildItem -Path . -Recurse -Directory -Filter "publish" | ForEach-Object { Write-Host $_.FullName }
shell: pwsh
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: WinUI3Crash-Build
path: bin/**/publish/