mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-26 07:23:38 +00:00
better restore cache + some experimentation
This commit is contained in:
parent
c3ad76dcd1
commit
4697b968a8
@ -328,12 +328,22 @@ jobs:
|
|||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
cd gpt4all-bindings/csharp
|
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:
|
- run:
|
||||||
name: "Install project dependencies"
|
name: "Install project dependencies"
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
dotnet restore Gpt4All
|
dotnet restore Gpt4All
|
||||||
|
dotnet restore Gpt4All.Tests
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.nuget/packages
|
- ~/.nuget/packages
|
||||||
@ -388,11 +398,16 @@ jobs:
|
|||||||
$Env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
$Env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
||||||
$Env:Path += ";C:\Program Files\CMake\bin"
|
$Env:Path += ";C:\Program Files\CMake\bin"
|
||||||
./build_win-mingw.ps1
|
./build_win-mingw.ps1
|
||||||
|
- run:
|
||||||
|
name: TEST bash under windows
|
||||||
|
command: echo $(uname)
|
||||||
|
shell: bash.exe
|
||||||
- run:
|
- run:
|
||||||
name: "Install project dependencies"
|
name: "Install project dependencies"
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
dotnet.exe restore Gpt4All
|
dotnet.exe restore Gpt4All
|
||||||
|
dotnet.exe restore Gpt4All.Tests
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- C:\Users\circleci\.nuget\packages
|
- C:\Users\circleci\.nuget\packages
|
||||||
@ -456,6 +471,7 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
dotnet restore Gpt4All
|
dotnet restore Gpt4All
|
||||||
|
dotnet restore Gpt4All.Tests
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.nuget/packages
|
- ~/.nuget/packages
|
||||||
|
Loading…
Reference in New Issue
Block a user