Fix MSBuild dependency graph resolution #10
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [ opened, synchronize, closed, reopened ] | |
# paths: | |
workflow_dispatch: | |
env: | |
MSBUILD_DEFAULTS: /m:2 /v:m /clp:ShowCommandLine /p:Configuration=Release /p:Platform="Any CPU" | |
NUGET_DEFAULTS: -Verbosity quiet -NonInteractive -ConfigFile NuGet.Config -UseLockFile | |
jobs: | |
# Runs test suite | |
build: | |
runs-on: windows-latest | |
name: "MSBuild Runner" | |
steps: | |
# Fetches remote repository without --progress option. | |
# | |
# The default behavior of @actions/checkout outputs many noisy lines of | |
# status output in the workflow log, which is problematic for log size. | |
- name: Checkout latest repository commit | |
uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
# Setup the .NET environment | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
# Setup MSBuild environment | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Restore Build Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
**/bin | |
**/obj | |
**/Win32 | |
**/x64 | |
key: ${{ runner.os }}-msbuild-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-msbuild- | |
# Setup NuGet environment | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1.2.0 | |
- name: Restore NuGet packages | |
run: nuget restore SDK.sln ${{ env.NUGET_DEFAULTS }} | |
# Setup MTGO installation and reference assemblies | |
- name: Build Reference Assemblies | |
run: | | |
# msbuild Ref.sln /t:Restore ${{ env.MSBUILD_DEFAULTS }} | |
msbuild Ref.sln /t:Build ${{ env.MSBUILD_DEFAULTS }} | |
# Build the SDK | |
- name: Build SDK Solution | |
run: | | |
# msbuild SDK.sln /t:Restore ${{ env.MSBUILD_DEFAULTS }} | |
msbuild SDK.sln /t:Build ${{ env.MSBUILD_DEFAULTS }} |