Skip to content

Commit

Permalink
updated the build.yml file to update to some newer approaches to try …
Browse files Browse the repository at this point in the history
…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.
20 changes: 4 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand All @@ -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
Expand Down

0 comments on commit e84b793

Please sign in to comment.