-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the build.yml file to update to some newer approaches to try …
…to get rid of the "The `save-state` command is deprecated and will be disabled soon" error on the GHA build outcome page
- Loading branch information
bobeaton
committed
Nov 23, 2023
1 parent
185b81b
commit e84b793
Showing
1 changed file
with
4 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,29 +25,17 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch full history for GitVersion | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@c0d4ad69d8bd405d234f1c9166d383b7a4f69ed8 # v2.1.0 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
#- name: Restore | ||
# run: dotnet restore | ||
|
||
- name: setup-msbuild | ||
uses: microsoft/[email protected] | ||
with: | ||
# Folder location of where vswhere.exe is located if a self-hosted agent | ||
vswhere-path: # optional | ||
# Version of Visual Studio to search; defaults to latest if not specified | ||
vs-version: # optional | ||
# Enable searching for pre-release versions of Visual Studio/MSBuild | ||
vs-prerelease: # optional | ||
# The preferred processor architecture of MSBuild. Can be either "x86" or "x64". "x64" is only available from Visual Studio version 17.0 and later. | ||
msbuild-architecture: x64 # optional, default is x86 | ||
uses: microsoft/[email protected] | ||
|
||
- name: Fetch nuget dependecies | ||
run: nuget restore "${{env.SOLUTION_FILE_PATH}}" | ||
|
@@ -61,7 +49,7 @@ jobs: | |
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
# Add additional options to the MSBuild command line here (like platform or verbosity level). | ||
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | ||
run: msbuild /m /p:Configuration=${{matrix.build_configuration}} "${{env.SOLUTION_FILE_PATH}}" | ||
run: msbuild /m /p:Configuration=${{matrix.build_configuration}} /p:Platform=${{ matrix.build_platform }} "${{env.SOLUTION_FILE_PATH}}" | ||
|
||
# TODO Run tests | ||
#- name: Test | ||
|