try fix dotnet tools path on osx + bugfix

This commit is contained in:
mvenditto 2023-06-16 22:30:55 +02:00 committed by AT
parent 54efa75c7d
commit 7805492c4f

View File

@ -16,7 +16,7 @@ parameters:
run-csharp-workflow: run-csharp-workflow:
type: boolean type: boolean
default: false default: false
jobs: jobs:
default-job: default-job:
docker: docker:
@ -326,7 +326,7 @@ jobs:
name: Build C library name: Build C library
command: | command: |
git submodule init git submodule init
git submodule update git submodule update --recursive
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
./build_linux.sh ./build_linux.sh
- run: - run:
@ -353,7 +353,7 @@ jobs:
command: | command: |
cd gpt4all-bindings/csharp/Gpt4All.Tests cd gpt4all-bindings/csharp/Gpt4All.Tests
dotnet tool install -g trx2junit dotnet tool install -g trx2junit
export PATH="$PATH:/root/.dotnet/tools" export PATH="$PATH:$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
@ -472,7 +472,7 @@ jobs:
command: | command: |
cd gpt4all-bindings/csharp/Gpt4All.Tests cd gpt4all-bindings/csharp/Gpt4All.Tests
dotnet tool install -g trx2junit dotnet tool install -g trx2junit
export PATH="$PATH:/root/.dotnet/tools" export PATH="$PATH:$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