Update README.md #393
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
# gynt: This is based on the .NET Core Desktop starter action | |
name: UCP Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master, GUI-Update] | |
pull_request: | |
branches: [master, GUI-Update] | |
types: [assigned, opened, edited, ready_for_review, reopened, synchronize] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
nuget: [latest] | |
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: | |
OutputPath: ..\Output${{ matrix.configuration }} | |
Solution_Name: UnofficialCrusaderPatch.sln # Replace with your solution name, i.e. MyWpfApp.sln. | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive --depth 1 | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "5.0.x" | |
# Restore NuGet packages | |
- name: Setup NuGet.exe | |
uses: nuget/setup-nuget@v1 | |
with: | |
nuget-version: ${{ matrix.nuget }} | |
- name: Restore NuGet packages | |
run: nuget restore $env:Solution_Name | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
# 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: Build the application | |
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:OutputPath=$env:OutputPath | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: UCP-latest-release | |
path: | | |
OutputRelease/*.dll | |
OutputRelease/*.exe | |
OutputRelease/resources | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: UCP-latest-debug | |
path: | | |
OutputDebug |