mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +00:00
macos again
This commit is contained in:
parent
ddf124bb76
commit
7e92f9c401
@ -433,10 +433,11 @@ jobs:
|
|||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
brew install cmake
|
brew install cmake
|
||||||
curl https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh -o dotnet-install.sh
|
brew install --cask dotnet-sdk
|
||||||
chmod +x dotnet-install.sh
|
# curl https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh -o dotnet-install.sh
|
||||||
./dotnet-install.sh -Channel 7.0 --install-dir $HOME/cli-tools
|
# chmod +x dotnet-install.sh
|
||||||
$HOME/cli-tools/dotnet --info
|
# ./dotnet-install.sh -Channel 7.0 --install-dir $HOME/cli-tools
|
||||||
|
# $HOME/cli-tools/dotnet --info
|
||||||
- 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
|
||||||
$HOME/cli-tools/dotnet restore Gpt4All
|
dotnet restore Gpt4All
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.nuget/packages
|
- ~/.nuget/packages
|
||||||
@ -463,19 +464,18 @@ jobs:
|
|||||||
name: Build C# Project
|
name: Build C# Project
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
$HOME/cli-tools/dotnet build Gpt4All --configuration Release --nologo
|
dotnet build Gpt4All --configuration Release --nologo
|
||||||
- run:
|
- run:
|
||||||
name: "Run C# Tests"
|
name: "Run C# Tests"
|
||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
$HOME/cli-tools/dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx"
|
dotnet test Gpt4All.Tests -v n -c Release --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
|
||||||
$HOME/cli-tools/dotnet tool install -g trx2junit
|
dotnet tool install -g trx2junit
|
||||||
export PATH="$PATH:$HOME/.dotnet/tools"
|
export PATH="$PATH:$HOME/.dotnet/tools"
|
||||||
export PATH="$PATH:$HOME/cli-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
|
||||||
|
Loading…
Reference in New Issue
Block a user