keep trying

This commit is contained in:
Adam Treat 2023-07-13 13:57:22 -04:00
parent e59946f05d
commit 64b409e0b8

View File

@ -492,48 +492,48 @@ jobs:
name: win/default name: win/default
size: large size: large
shell: powershell.exe -ExecutionPolicy Bypass shell: powershell.exe -ExecutionPolicy Bypass
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- gpt4all-csharp-nuget-packages-win - gpt4all-csharp-nuget-packages-win
- attach_workspace: - attach_workspace:
at: C:\Users\circleci\workspace at: C:\Users\circleci\workspace
- run: - run:
name: "Prepare Native Libs" name: "Prepare Native Libs"
command: | command: |
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
mkdir -p runtimes\win-x64\native mkdir -p runtimes\win-x64\native
cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\ cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\
ls -R runtimes ls -R runtimes
- run: - run:
name: "Install project dependencies" name: "Install project dependencies"
command: | command: |
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
dotnet.exe restore Gpt4All dotnet.exe restore Gpt4All
- save_cache: - save_cache:
paths: paths:
- C:\Users\circleci\.nuget\packages - C:\Users\circleci\.nuget\packages
key: gpt4all-csharp-nuget-packages-win key: gpt4all-csharp-nuget-packages-win
- run: - run:
name: Build C# Project name: Build C# Project
command: | command: |
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
dotnet.exe build Gpt4All --configuration Release --nologo dotnet.exe 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.exe test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" dotnet.exe 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
$Env:Path += ";$Env:USERPROFILE\.dotnet\tools" $Env:Path += ";$Env:USERPROFILE\.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-macos: build-csharp-macos:
macos: macos: