Skip to content

Commit

Permalink
yy
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Colenso authored and Connor Colenso committed Aug 30, 2024
1 parent 6705a22 commit 5ccc16d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
uses: actions/checkout@v3

- name: Locate MSBuild
id: locate-msbuild
run: |
echo "##[set-output name=vs-path;]$(vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath)"
echo "MSBuild located at ${{ steps.locate-msbuild.outputs.vs-path }}"
$msbuildPath = vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
echo "MSBuild located at $msbuildPath"
echo "MSBUILD_PATH=$msbuildPath\MSBuild\Current\Bin\MSBuild.exe" >> $GITHUB_ENV
- name: Build the solution
run: ${{ steps.locate-msbuild.outputs.vs-path }}\MSBuild\Current\Bin\MSBuild.exe /t:Build /p:Configuration=Release /p:Platform=x64 YourSolution.sln
run: |
&"${{ env.MSBUILD_PATH }}" /t:Build /p:Configuration=Release /p:Platform=x64 YourSolution.sln
- name: Archive build artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 5ccc16d

Please sign in to comment.