mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Simplify Visual Studio setup in Windows build workflow
This commit is contained in:
committed by
GitHub
parent
60f2b53866
commit
84501d087c
20
.github/workflows/windows-build.yml
vendored
20
.github/workflows/windows-build.yml
vendored
@@ -87,24 +87,8 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||
if not exist "%VSWHERE%" (
|
||||
echo Unable to find vswhere at %VSWHERE%
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
for /f "usebackq delims=" %%I in (`"%VSWHERE%" -latest -products * -version [17.0^,18.0^) -requires Microsoft.Component.MSBuild -property installationPath`) do set "VSINSTALLDIR=%%I"
|
||||
if not defined VSINSTALLDIR (
|
||||
echo Unable to locate a Visual Studio 2022 installation with MSBuild.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat"
|
||||
if errorlevel 1 (
|
||||
echo Failed to initialize Visual Studio Developer Command Prompt.
|
||||
exit /b 1
|
||||
)
|
||||
set "PYTHON_DIR=C:\gtk-build\python-3.14.2\${{ matrix.platform }}"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
|
||||
set "PYTHON_DIR=C:\gtk-build\python-3.14.2\${{ matrix.platform }}"
|
||||
if not exist "%PYTHON_DIR%\libs\python314.lib" (
|
||||
echo Missing %PYTHON_DIR%\libs\python314.lib
|
||||
dir "%PYTHON_DIR%\libs"
|
||||
|
||||
Reference in New Issue
Block a user