From d3b0a6f0e3eef04a47c1a05c298ddc891c30308d Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Fri, 25 Oct 2024 02:36:20 -0700 Subject: [PATCH] Lock visual studio version in release script --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd1ee42..7c9e64e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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: