Add command line examples and PoC note to README #4
This file contains 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: .NET Desktop build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] # configuration: [Debug, Release] | |
runs-on: windows-latest # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
env: | |
Solution_Name: MTPCmd.sln # Replace with your solution name, i.e. MyWpfApp.sln. | |
Project_Directory: MTPCmd # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. | |
Project_Name: MTPCmd\MTPCmd.csproj # Replace with the path to your Wap project, i.e. MyWpf.App\MyWpfApp.csproj. | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.0.2 | |
# Execute all unit tests in the solution | |
#- name: Execute unit tests | |
# run: dotnet test | |
# Restore the application to populate the obj folder with RuntimeIdentifiers | |
- name: Restore the application | |
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration | |
env: | |
Configuration: ${{ matrix.configuration }} | |
# Create the app package by building project | |
- name: Build and publish application | |
run: msbuild $env:Project_Path /t:Publish /p:Configuration=$env:Configuration /p:PublishDir=bin\Publish | |
env: | |
Configuration: ${{ matrix.configuration }} | |
# Upload the build artifacts: https://github.com/marketplace/actions/upload-artifact | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: MTPCmd-package | |
path: ${{ env.Project_Directory }}\bin\Publish\ |