|
|
|
@ -328,12 +328,22 @@ jobs:
|
|
|
|
|
git submodule init
|
|
|
|
|
git submodule update --recursive
|
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
|
./build_linux.sh
|
|
|
|
|
git submodule init
|
|
|
|
|
git submodule update --recursive
|
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
|
BASE_DIR="runtimes/linux-x64"
|
|
|
|
|
NATIVE_DIR="$BASE_DIR/native"
|
|
|
|
|
BUILD_DIR="$BASE_DIR/build"
|
|
|
|
|
mkdir -p "$NATIVE_DIR" "$BUILD_DIR"
|
|
|
|
|
cmake -S ../../gpt4all-backend -B "$BUILD_DIR"
|
|
|
|
|
cmake --build "$BUILD_DIR" -j --config Release
|
|
|
|
|
cp "$BUILD_DIR"/*.so "$NATIVE_DIR"
|
|
|
|
|
- run:
|
|
|
|
|
name: "Install project dependencies"
|
|
|
|
|
command: |
|
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
|
dotnet restore Gpt4All
|
|
|
|
|
dotnet restore Gpt4All.Tests
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
|
|
|
|
- ~/.nuget/packages
|
|
|
|
@ -388,11 +398,16 @@ jobs:
|
|
|
|
|
$Env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
|
|
|
|
$Env:Path += ";C:\Program Files\CMake\bin"
|
|
|
|
|
./build_win-mingw.ps1
|
|
|
|
|
- run:
|
|
|
|
|
name: TEST bash under windows
|
|
|
|
|
command: echo $(uname)
|
|
|
|
|
shell: bash.exe
|
|
|
|
|
- run:
|
|
|
|
|
name: "Install project dependencies"
|
|
|
|
|
command: |
|
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
|
dotnet.exe restore Gpt4All
|
|
|
|
|
dotnet.exe restore Gpt4All.Tests
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
|
|
|
|
- C:\Users\circleci\.nuget\packages
|
|
|
|
@ -456,6 +471,7 @@ jobs:
|
|
|
|
|
command: |
|
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
|
dotnet restore Gpt4All
|
|
|
|
|
dotnet restore Gpt4All.Tests
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
|
|
|
|
- ~/.nuget/packages
|
|
|
|
|