mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-04-28 11:40:43 +00:00
upgrade windows runners to windows 2022, cu11 still uses vs2019
this should finally work (+21 squashed commit) Squashed commit: [5edac5b59] Revert "quick dbg" This reverts commit fd62a997cc6684bb89242d5e7b0ae2aed83fd27f. [fd62a997c] quick dbg [bcccae7e6] sanity check 2 [568e2eb08] sanity check [2f30d573a] please work 2 [cf8765221] please work [c535e60d9] try a small trick [d4ba79b80] 2022 test [3f146b000] t2 [4a3b9a9b4] revert and test [4bdc9a149] reverted test2 [5081cb4a3] reverted test [ea9a826f3] broken test [3c11ae389] compare 2019 [8ecec4fec] not for cu12 [0be964f3a] added vs2019 for the other runners [5d24641cb] debugging 4 [1dee79207] debugging 3 [ab172f133] more debugging 2 [b1a895e84] more debugging [5d21d8bd0] vs2019 setup
This commit is contained in:
parent
bc89b465a8
commit
50a27793d3
6 changed files with 120 additions and 24 deletions
|
|
@ -35,6 +35,39 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip install customtkinter==5.2.0 pyinstaller==5.11.0 psutil==5.9.5
|
||||
|
||||
- name: Display full Visual Studio info Before
|
||||
run: |
|
||||
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -products * -format json
|
||||
shell: pwsh
|
||||
|
||||
- name: Visual Studio 2019 Reinstall
|
||||
shell: cmd
|
||||
run: |
|
||||
@echo off
|
||||
echo Preparing setup
|
||||
curl -fLO https://download.visualstudio.microsoft.com/download/pr/1fbe074b-8ae1-4e9b-8e83-d1ce4200c9d1/61098e228df7ba3a6a8b4e920a415ad8878d386de6dd0f23f194fe1a55db189a/vs_Enterprise.exe
|
||||
vs_Enterprise.exe --quiet --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.CLI.Support --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Workload.UniversalBuildTools --add Microsoft.VisualStudio.Component.VC.CMake.Project
|
||||
echo Waiting for VS2019 setup
|
||||
set "ProcessName=setup.exe"
|
||||
:CheckProcess
|
||||
tasklist /FI "IMAGENAME eq %ProcessName%" | find /I "%ProcessName%" >nul
|
||||
if %errorlevel%==0 (
|
||||
ping 127.0.0.1 /n 5 >nul
|
||||
goto CheckProcess
|
||||
)
|
||||
echo VS2019 Setup completed
|
||||
exit /b 0
|
||||
|
||||
- name: Disable Visual Studio 2022 by Renaming
|
||||
run: |
|
||||
Rename-Item "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" "Enterprise_DISABLED"
|
||||
shell: pwsh
|
||||
|
||||
- name: Display full Visual Studio info After
|
||||
run: |
|
||||
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -products * -format json
|
||||
shell: pwsh
|
||||
|
||||
- name: Download and install win64devkit
|
||||
run: |
|
||||
curl -L https://github.com/skeeto/w64devkit/releases/download/v1.22.0/w64devkit-1.22.0.zip --output w64devkit.zip
|
||||
|
|
@ -64,28 +97,12 @@ jobs:
|
|||
cuda: '11.4.4'
|
||||
use-github-cache: false
|
||||
|
||||
- name: Install Visual Studio 2019
|
||||
shell: cmd
|
||||
run: |
|
||||
echo off
|
||||
echo Downloading Visual Studio 2019 Setup
|
||||
curl -fLO https://download.visualstudio.microsoft.com/download/pr/1fbe074b-8ae1-4e9b-8e83-d1ce4200c9d1/61098e228df7ba3a6a8b4e920a415ad8878d386de6dd0f23f194fe1a55db189a/vs_Enterprise.exe
|
||||
echo Running Visual Studio 2019 Setup
|
||||
vs_Enterprise.exe --quiet --wait --norestart --nocache ^
|
||||
--add Microsoft.VisualStudio.Workload.VCTools ^
|
||||
--add Microsoft.VisualStudio.Component.VC.CLI.Support ^
|
||||
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 ^
|
||||
--add Microsoft.VisualStudio.Workload.UniversalBuildTools ^
|
||||
--add Microsoft.VisualStudio.Component.VC.CMake.Project
|
||||
|
||||
- name: Build CUDA with Visual Studio 2019
|
||||
- name: Build CUDA
|
||||
id: cmake_build
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -G "Visual Studio 16 2019" -A x64 -DLLAMA_CUBLAS=ON -DCMAKE_SYSTEM_VERSION="10.0.19041.0"
|
||||
cmake .. -DLLAMA_CUBLAS=ON -DCMAKE_SYSTEM_VERSION="10.0.19041.0"
|
||||
cmake --build . --config Release -j 2
|
||||
cd ..
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue