mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-19 23:35:41 +00:00
fix workspace symlinks on unix, fix persist_workspace on windows and macos runtimes dir
This commit is contained in:
parent
2927d11a28
commit
f3b6f49684
@ -328,10 +328,12 @@ jobs:
|
|||||||
name: Build Libraries
|
name: Build Libraries
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-backend
|
cd gpt4all-backend
|
||||||
mkdir -p runtimes/linux-x64
|
mkdir -p runtimes/build
|
||||||
cd runtimes/linux-x64
|
cd runtimes/build
|
||||||
cmake ../..
|
cmake ../..
|
||||||
cmake --build . --parallel --config Release
|
cmake --build . --parallel --config Release
|
||||||
|
mkdir ../linux-x64
|
||||||
|
cp -L *.so ../linux-x64 # otherwise persist_to_workspace seems to mess symlinks
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: gpt4all-backend
|
root: gpt4all-backend
|
||||||
paths:
|
paths:
|
||||||
@ -355,10 +357,12 @@ jobs:
|
|||||||
name: Build Libraries
|
name: Build Libraries
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-backend
|
cd gpt4all-backend
|
||||||
mkdir -p runtimes/osx-x64
|
mkdir -p runtimes/build
|
||||||
cd runtimes/osx-x64
|
cd runtimes/build
|
||||||
cmake ../.. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
|
cmake ../.. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
|
||||||
cmake --build . --parallel --config Release
|
cmake --build . --parallel --config Release
|
||||||
|
mkdir ../osx-x64
|
||||||
|
cp -L *.dylib ../osx-x64
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: gpt4all-backend
|
root: gpt4all-backend
|
||||||
paths:
|
paths:
|
||||||
@ -434,18 +438,6 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- runtimes/win-x64_msvc/*.dll
|
- runtimes/win-x64_msvc/*.dll
|
||||||
|
|
||||||
build-bindings-backend-debug:
|
|
||||||
docker:
|
|
||||||
- image: mcr.microsoft.com/dotnet/sdk:6.0-jammy # Ubuntu 22.04
|
|
||||||
steps:
|
|
||||||
- setup_remote_docker
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: TEST - list libraries
|
|
||||||
command: |
|
|
||||||
ls -R /tmp/workspace
|
|
||||||
|
|
||||||
build-csharp-linux:
|
build-csharp-linux:
|
||||||
docker:
|
docker:
|
||||||
- image: mcr.microsoft.com/dotnet/sdk:7.0-jammy # Ubuntu 22.04
|
- image: mcr.microsoft.com/dotnet/sdk:7.0-jammy # Ubuntu 22.04
|
||||||
@ -454,10 +446,6 @@ jobs:
|
|||||||
condition: << pipeline.parameters.run-csharp-workflow >>
|
condition: << pipeline.parameters.run-csharp-workflow >>
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- gpt4all-csharp-nuget-packages-nix
|
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- run:
|
- run:
|
||||||
@ -468,6 +456,9 @@ jobs:
|
|||||||
ls -R /tmp/workspace
|
ls -R /tmp/workspace
|
||||||
cp /tmp/workspace/runtimes/linux-x64/* runtimes/linux-x64/native/
|
cp /tmp/workspace/runtimes/linux-x64/* runtimes/linux-x64/native/
|
||||||
ls -R runtimes
|
ls -R runtimes
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- gpt4all-csharp-nuget-packages-nix
|
||||||
- run:
|
- run:
|
||||||
name: "Install project dependencies"
|
name: "Install project dependencies"
|
||||||
command: |
|
command: |
|
||||||
@ -511,13 +502,13 @@ jobs:
|
|||||||
keys:
|
keys:
|
||||||
- gpt4all-csharp-nuget-packages-win
|
- gpt4all-csharp-nuget-packages-win
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: C:\Users\circleci\workspace
|
||||||
- run:
|
- run:
|
||||||
name: "Prepare Native Libs"
|
name: "Prepare Native Libs"
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
mkdir -p runtimes/win-x64/native
|
mkdir -p runtimes\win-x64\native
|
||||||
cp /tmp/workspace/runtimes/win-x64/*.dll runtimes/win-x64/native/
|
cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\
|
||||||
ls -R runtimes
|
ls -R runtimes
|
||||||
- run:
|
- run:
|
||||||
name: "Install project dependencies"
|
name: "Install project dependencies"
|
||||||
@ -569,8 +560,8 @@ jobs:
|
|||||||
name: "Prepare Native Libs"
|
name: "Prepare Native Libs"
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
mkdir -p runtimes/osx-x64/native
|
mkdir -p runtimes/osx/native
|
||||||
cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/win-x64/native/
|
cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/
|
||||||
ls -R runtimes
|
ls -R runtimes
|
||||||
- run:
|
- run:
|
||||||
name: "Install project dependencies"
|
name: "Install project dependencies"
|
||||||
@ -709,15 +700,6 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
requires:
|
requires:
|
||||||
- hold
|
- hold
|
||||||
- build-bindings-backend-debug:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
requires:
|
|
||||||
- build-bindings-backend-linux
|
|
||||||
- build-bindings-backend-macos
|
|
||||||
- build-bindings-backend-windows
|
|
||||||
- build-bindings-backend-windows-msvc
|
|
||||||
# CSharp Jobs
|
# CSharp Jobs
|
||||||
- build-csharp-linux:
|
- build-csharp-linux:
|
||||||
filters:
|
filters:
|
||||||
|
Loading…
Reference in New Issue
Block a user