mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-16 00:15:59 +00:00
try again to unbreak circlci
This commit is contained in:
parent
59cae1132c
commit
b72b409d40
@ -444,156 +444,147 @@ jobs:
|
|||||||
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
|
||||||
steps:
|
steps:
|
||||||
- when:
|
- checkout
|
||||||
condition: << pipeline.parameters.run-csharp-workflow >>
|
- attach_workspace:
|
||||||
steps:
|
at: /tmp/workspace
|
||||||
- checkout
|
- run:
|
||||||
- attach_workspace:
|
name: "Prepare Native Libs"
|
||||||
at: /tmp/workspace
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Prepare Native Libs"
|
mkdir -p runtimes/linux-x64/native
|
||||||
command: |
|
cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/
|
||||||
cd gpt4all-bindings/csharp
|
ls -R runtimes
|
||||||
mkdir -p runtimes/linux-x64/native
|
- restore_cache:
|
||||||
cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/
|
keys:
|
||||||
ls -R runtimes
|
- gpt4all-csharp-nuget-packages-nix
|
||||||
- restore_cache:
|
- run:
|
||||||
keys:
|
name: "Install project dependencies"
|
||||||
- gpt4all-csharp-nuget-packages-nix
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Install project dependencies"
|
dotnet restore Gpt4All
|
||||||
command: |
|
- save_cache:
|
||||||
cd gpt4all-bindings/csharp
|
paths:
|
||||||
dotnet restore Gpt4All
|
- ~/.nuget/packages
|
||||||
- save_cache:
|
key: gpt4all-csharp-nuget-packages-nix
|
||||||
paths:
|
- run:
|
||||||
- ~/.nuget/packages
|
name: Build C# Project
|
||||||
key: gpt4all-csharp-nuget-packages-nix
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: Build C# Project
|
dotnet build Gpt4All --configuration Release --nologo
|
||||||
command: |
|
- run:
|
||||||
cd gpt4all-bindings/csharp
|
name: "Run C# Tests"
|
||||||
dotnet build Gpt4All --configuration Release --nologo
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Run C# Tests"
|
dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
||||||
command: |
|
- run:
|
||||||
cd gpt4all-bindings/csharp
|
name: Test results
|
||||||
dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
||||||
name: Test results
|
dotnet tool install -g trx2junit
|
||||||
command: |
|
export PATH="$PATH:$HOME/.dotnet/tools"
|
||||||
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
trx2junit TestResults/*.trx
|
||||||
dotnet tool install -g trx2junit
|
- store_test_results:
|
||||||
export PATH="$PATH:$HOME/.dotnet/tools"
|
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
||||||
trx2junit TestResults/*.trx
|
|
||||||
- store_test_results:
|
|
||||||
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
|
||||||
|
|
||||||
build-csharp-windows:
|
build-csharp-windows:
|
||||||
executor:
|
executor:
|
||||||
name: win/default
|
name: win/default
|
||||||
size: large
|
size: large
|
||||||
shell: powershell.exe -ExecutionPolicy Bypass
|
shell: powershell.exe -ExecutionPolicy Bypass
|
||||||
steps:
|
steps:
|
||||||
- when:
|
- checkout
|
||||||
condition: << pipeline.parameters.run-csharp-workflow >>
|
- restore_cache:
|
||||||
steps:
|
keys:
|
||||||
- checkout
|
- gpt4all-csharp-nuget-packages-win
|
||||||
- restore_cache:
|
- attach_workspace:
|
||||||
keys:
|
at: C:\Users\circleci\workspace
|
||||||
- gpt4all-csharp-nuget-packages-win
|
- run:
|
||||||
- attach_workspace:
|
name: "Prepare Native Libs"
|
||||||
at: C:\Users\circleci\workspace
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Prepare Native Libs"
|
mkdir -p runtimes\win-x64\native
|
||||||
command: |
|
cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\
|
||||||
cd gpt4all-bindings/csharp
|
ls -R runtimes
|
||||||
mkdir -p runtimes\win-x64\native
|
- run:
|
||||||
cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\
|
name: "Install project dependencies"
|
||||||
ls -R runtimes
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Install project dependencies"
|
dotnet.exe restore Gpt4All
|
||||||
command: |
|
- save_cache:
|
||||||
cd gpt4all-bindings/csharp
|
paths:
|
||||||
dotnet.exe restore Gpt4All
|
- C:\Users\circleci\.nuget\packages
|
||||||
- save_cache:
|
key: gpt4all-csharp-nuget-packages-win
|
||||||
paths:
|
- run:
|
||||||
- C:\Users\circleci\.nuget\packages
|
name: Build C# Project
|
||||||
key: gpt4all-csharp-nuget-packages-win
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: Build C# Project
|
dotnet.exe build Gpt4All --configuration Release --nologo
|
||||||
command: |
|
- run:
|
||||||
cd gpt4all-bindings/csharp
|
name: "Run C# Tests"
|
||||||
dotnet.exe build Gpt4All --configuration Release --nologo
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Run C# Tests"
|
dotnet.exe test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
||||||
command: |
|
- run:
|
||||||
cd gpt4all-bindings/csharp
|
name: Test results
|
||||||
dotnet.exe test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
||||||
name: Test results
|
dotnet tool install -g trx2junit
|
||||||
command: |
|
$Env:Path += ";$Env:USERPROFILE\.dotnet\tools"
|
||||||
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
trx2junit TestResults/*.trx
|
||||||
dotnet tool install -g trx2junit
|
- store_test_results:
|
||||||
$Env:Path += ";$Env:USERPROFILE\.dotnet\tools"
|
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
||||||
trx2junit TestResults/*.trx
|
|
||||||
- store_test_results:
|
|
||||||
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
|
||||||
|
|
||||||
build-csharp-macos:
|
build-csharp-macos:
|
||||||
macos:
|
macos:
|
||||||
xcode: "14.0.0"
|
xcode: "14.0.0"
|
||||||
steps:
|
steps:
|
||||||
- when:
|
- checkout
|
||||||
condition: << pipeline.parameters.run-csharp-workflow >>
|
- restore_cache:
|
||||||
steps:
|
keys:
|
||||||
- checkout
|
- gpt4all-csharp-nuget-packages-nix
|
||||||
- restore_cache:
|
- run:
|
||||||
keys:
|
name: Install dependencies
|
||||||
- gpt4all-csharp-nuget-packages-nix
|
command: |
|
||||||
- run:
|
brew install --cask dotnet-sdk
|
||||||
name: Install dependencies
|
- attach_workspace:
|
||||||
command: |
|
at: /tmp/workspace
|
||||||
brew install --cask dotnet-sdk
|
- run:
|
||||||
- attach_workspace:
|
name: "Prepare Native Libs"
|
||||||
at: /tmp/workspace
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Prepare Native Libs"
|
mkdir -p runtimes/osx/native
|
||||||
command: |
|
cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/
|
||||||
cd gpt4all-bindings/csharp
|
cp /tmp/workspace/runtimes/osx-x64/*.metal runtimes/osx/native/
|
||||||
mkdir -p runtimes/osx/native
|
ls -R runtimes
|
||||||
cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/
|
- run:
|
||||||
cp /tmp/workspace/runtimes/osx-x64/*.metal runtimes/osx/native/
|
name: "Install project dependencies"
|
||||||
ls -R runtimes
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Install project dependencies"
|
dotnet restore Gpt4All
|
||||||
command: |
|
- save_cache:
|
||||||
cd gpt4all-bindings/csharp
|
paths:
|
||||||
dotnet restore Gpt4All
|
- ~/.nuget/packages
|
||||||
- save_cache:
|
key: gpt4all-csharp-nuget-packages-nix
|
||||||
paths:
|
- run:
|
||||||
- ~/.nuget/packages
|
name: Build C# Project
|
||||||
key: gpt4all-csharp-nuget-packages-nix
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: Build C# Project
|
dotnet build Gpt4All --configuration Release --nologo
|
||||||
command: |
|
- run:
|
||||||
cd gpt4all-bindings/csharp
|
name: "Run C# Tests"
|
||||||
dotnet build Gpt4All --configuration Release --nologo
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp
|
||||||
name: "Run C# Tests"
|
dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
||||||
command: |
|
- run:
|
||||||
cd gpt4all-bindings/csharp
|
name: Test results
|
||||||
dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
command: |
|
||||||
- run:
|
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
||||||
name: Test results
|
dotnet tool install -g trx2junit
|
||||||
command: |
|
export PATH="$PATH:$HOME/.dotnet/tools"
|
||||||
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
trx2junit TestResults/*.trx
|
||||||
dotnet tool install -g trx2junit
|
- store_test_results:
|
||||||
export PATH="$PATH:$HOME/.dotnet/tools"
|
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
||||||
trx2junit TestResults/*.trx
|
|
||||||
- store_test_results:
|
|
||||||
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
|
||||||
|
|
||||||
store-and-upload-nupkgs:
|
store-and-upload-nupkgs:
|
||||||
docker:
|
docker:
|
||||||
|
Loading…
Reference in New Issue
Block a user