copy only needed mingw dlls

This commit is contained in:
mvenditto 2023-06-20 20:55:01 +02:00 committed by AT
parent 113c25e4de
commit 6d9575e103

View File

@ -386,14 +386,17 @@ jobs:
- run:
name: Build Libraries
command: |
$Env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
$MinGWBin = "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
$Env:Path += ";$MinGwBin"
$Env:Path += ";C:\Program Files\CMake\bin"
cd gpt4all-backend
mkdir win-x64
cd win-x64
cmake -G "MinGW Makefiles" ..
cmake -G "MinGW Makefiles" .. &&
cmake --build . --parallel --config Release
cp "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\*dll" .
cp "$MinGWBin\libgcc*.dll" .
cp "$MinGWBin\libstdc++*.dll" .
cp "$MinGWBin\libwinpthread*.dll" .
cp bin/*.dll .
- persist_to_workspace:
root: gpt4all-backend