|
|
@ -371,7 +371,7 @@ jobs:
|
|
|
|
- checkout
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
keys:
|
|
|
|
- gpt4all-csharp-bindings
|
|
|
|
- gpt4all-csharp-nuget-packages-win
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: Install MinGW64
|
|
|
|
name: Install MinGW64
|
|
|
|
command: choco install -y mingw --force --no-progress
|
|
|
|
command: choco install -y mingw --force --no-progress
|
|
|
@ -396,7 +396,7 @@ jobs:
|
|
|
|
- save_cache:
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- C:\Users\circleci\.nuget\packages
|
|
|
|
- C:\Users\circleci\.nuget\packages
|
|
|
|
key: gpt4all-csharp-bindings
|
|
|
|
key: gpt4all-csharp-nuget-packages-win
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: Build C# Project
|
|
|
|
name: Build C# Project
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
@ -433,8 +433,10 @@ jobs:
|
|
|
|
name: Install dependencies
|
|
|
|
name: Install dependencies
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
brew install cmake
|
|
|
|
brew install cmake
|
|
|
|
brew install dotnet@7
|
|
|
|
curl https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh -o dotnet-install.sh
|
|
|
|
dotnet --info
|
|
|
|
chmod +x dotnet-install.sh
|
|
|
|
|
|
|
|
./dotnet-install.sh -Channel 7.0.1xx --install-dir $HOME/cli-tools
|
|
|
|
|
|
|
|
$HOME/cli-tools/dotnet --info
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: Build C library
|
|
|
|
name: Build C library
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
@ -452,7 +454,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
|
|
|
@ -461,18 +463,19 @@ 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: |
|
|
|
|
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
|
|
|
cd gpt4all-bindings/csharp/Gpt4All.Tests
|
|
|
|
dotnet tool install -g trx2junit
|
|
|
|
$HOME/cli-tools/dotnet tool install -g trx2junit
|
|
|
|
export PATH="$PATH:$HOME/.dotnet/tools"
|
|
|
|
export PATH="$PATH:$HOME/.dotnet/tools"
|
|
|
|
|
|
|
|
ls $HOME/.dotnet/tools
|
|
|
|
trx2junit TestResults/*.trx
|
|
|
|
trx2junit TestResults/*.trx
|
|
|
|
- store_test_results:
|
|
|
|
- store_test_results:
|
|
|
|
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
|
|
|
path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults
|
|
|
|