Skip to content

Commit

Permalink
t
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 bdbe9b4 commit 6705a22
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v3

- name: Set up Visual Studio 2022
uses: microsoft/setup-msbuild@v1
with:
vs-version: '2022'
- 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 }}"
- name: Build the solution
run: msbuild /t:Build /p:Configuration=Release /p:Platform=x64 YourSolution.sln
run: ${{ steps.locate-msbuild.outputs.vs-path }}\MSBuild\Current\Bin\MSBuild.exe /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 6705a22

Please sign in to comment.