Skip to content

Commit

Permalink
Run MSBuild from default install location
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed May 10, 2021
1 parent ced5e00 commit b9f0d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,16 @@ jobs:
fetch-depth: 0

- name: 🔍 msbuild
uses: microsoft/setup-msbuild@v1
with:
vs-version: '[16.8,)'
run: echo "MSBUILD=$(vswhere -property installationPath)\MSBuild\Current\Bin\MSBuild.exe" >> $GITHUB_ENV

- name: 🙏 build
run: msbuild -r -m:1
run: |
"$(MSBUILD)" -r -m:1
- name: 🧪 test
run: |
dotnet restore src\NuGetizer.Tests\Scenarios\given_a_packaging_project\a.nuproj
msbuild -t:test
"$(MSBUILD)" -t:test
- name: 📦 pack
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ jobs:
fetch-depth: 0

- name: 🔍 msbuild
uses: microsoft/setup-msbuild@v1
with:
vs-version: '[16.8,)'
run: echo "MSBUILD=$(vswhere -property installationPath)\MSBuild\Current\Bin\MSBuild.exe" >> $GITHUB_ENV

- name: 🙏 build
run: msbuild -r -m:1
run: |
"$(MSBUILD)" -r -m:1
- name: 🧪 test
run: |
dotnet restore src\NuGetizer.Tests\Scenarios\given_a_packaging_project\a.nuproj
msbuild -t:test
"$(MSBUILD)" -t:test
- name: 📦 pack
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
Expand Down

0 comments on commit b9f0d6c

Please sign in to comment.