Add desktop build action

This commit is contained in:
JinGen Lim 2021-11-09 12:48:40 +08:00 committed by GitHub
parent 9cfd358674
commit 4e0ddaa518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 55 additions and 0 deletions

55
.github/workflows/dotnet-desktop.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: .NET Core Desktop
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: UnlockECU.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore UnlockECU dependencies
run: msbuild UnlockECU/UnlockECU.sln /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Create the app package by building and packaging the Windows Application Packaging project
- name: Build VisualUnlockECU
run: msbuild UnlockECU/VisualUnlockECU/VisualUnlockECU.csproj /property:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: VisualUnlockECU
path: UnlockECU\VisualUnlockECU\bin\Release\net5.0-windows