try again to unbreak circleci

This commit is contained in:
Adam Treat 2023-07-13 13:55:22 -04:00
parent b72b409d40
commit e59946f05d

View File

@ -444,48 +444,48 @@ 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:
- checkout - checkout
- attach_workspace: - attach_workspace:
at: /tmp/workspace at: /tmp/workspace
- run: - run:
name: "Prepare Native Libs" name: "Prepare Native Libs"
command: | command: |
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
mkdir -p runtimes/linux-x64/native mkdir -p runtimes/linux-x64/native
cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/ cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/
ls -R runtimes ls -R runtimes
- restore_cache: - restore_cache:
keys: keys:
- gpt4all-csharp-nuget-packages-nix - gpt4all-csharp-nuget-packages-nix
- run: - run:
name: "Install project dependencies" name: "Install project dependencies"
command: | command: |
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
dotnet restore Gpt4All dotnet restore Gpt4All
- save_cache: - save_cache:
paths: paths:
- ~/.nuget/packages - ~/.nuget/packages
key: gpt4all-csharp-nuget-packages-nix key: gpt4all-csharp-nuget-packages-nix
- run: - run:
name: Build C# Project name: Build C# Project
command: | command: |
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
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
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
dotnet tool install -g trx2junit dotnet tool install -g trx2junit
export PATH="$PATH:$HOME/.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
build-csharp-windows: build-csharp-windows:
executor: executor: