|
|
@ -435,8 +435,9 @@ jobs:
|
|
|
|
brew install cmake
|
|
|
|
brew install cmake
|
|
|
|
curl https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh -o dotnet-install.sh
|
|
|
|
curl https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh -o dotnet-install.sh
|
|
|
|
chmod +x dotnet-install.sh
|
|
|
|
chmod +x dotnet-install.sh
|
|
|
|
./dotnet-install.sh -Channel 6.0.1xx
|
|
|
|
./dotnet-install.sh --channel 6.0.1xx --install-dir $HOME/cli-tools
|
|
|
|
dotnet --version
|
|
|
|
ls $HOME/cli-tools
|
|
|
|
|
|
|
|
$HOME/cli-tools/dotnet --version
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: Build C library
|
|
|
|
name: Build C library
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
@ -454,7 +455,7 @@ jobs:
|
|
|
|
name: "Install project dependencies"
|
|
|
|
name: "Install project dependencies"
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
dotnet restore Gpt4All
|
|
|
|
$HOME/cli-tools/dotnet restore Gpt4All
|
|
|
|
- save_cache:
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- ~/.nuget/packages
|
|
|
|
- ~/.nuget/packages
|
|
|
@ -463,12 +464,12 @@ jobs:
|
|
|
|
name: Build C# Project
|
|
|
|
name: Build C# Project
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
dotnet build Gpt4All --configuration Release
|
|
|
|
$HOME/cli-tools/dotnet build Gpt4All --configuration Release
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: "Run C# Tests"
|
|
|
|
name: "Run C# Tests"
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
dotnet test Gpt4All.Tests -v n --filter "SKIP_ON_CI!=True" --logger "trx"
|
|
|
|
$HOME/cli-tools/dotnet test Gpt4All.Tests -v n --filter "SKIP_ON_CI!=True" --logger "trx"
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: test results
|
|
|
|
name: test results
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|