Update publish profiles and project build settings #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 -p:WindowsAppSDKSelfContained=true | |
| - 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/ |