Skip to content

Commit

Permalink
add back msbuild to build path
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 13, 2024
1 parent 316a9d3 commit c71e180
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,29 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x

- name: NuGet Cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2

- name: Restore
run: dotnet run --project Build/Build.csproj -- restore

- name: Build
run: dotnet run --project Build/Build.csproj -- build

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c71e180

Please sign in to comment.