Skip to content

Commit

Permalink
Lock visual studio version in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
agersant committed Oct 25, 2024
1 parent 6601aa9 commit d3b0a6f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
key: ${{ secrets.GBVSR_FRAME_METER_SSH_PRIVATE_KEY }}
known_hosts: unnecessary
- name: Setup Visual Studio Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
- name: Install Visual Studio build tools
run: choco install -y visualstudio2022buildtools --version=117.9.7.0 --params "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --installChannelUri https://aka.ms/vs/17/release/180911598_-255012421/channel"
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand All @@ -36,7 +36,10 @@ jobs:
with:
xmake-version: "2.9.3"
- name: Compile & Package
run: .\scripts\release.ps1
run: |
Import-Module 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll'
Enter-VsDevShell -VsInstallPath 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools' -DevCmdArguments '-arch=x64 -host_arch=x64'
.\scripts\release.ps1
- name: Make Github release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit d3b0a6f

Please sign in to comment.