From b72b409d4040be46d4e25eac66808e0f0c6e49cd Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Thu, 13 Jul 2023 13:52:39 -0400 Subject: [PATCH] try again to unbreak circlci --- .circleci/continue_config.yml | 269 ++++++++++++++++------------------ 1 file changed, 130 insertions(+), 139 deletions(-) diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index 0999c77b..fd4932b7 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -444,156 +444,147 @@ jobs: build-csharp-linux: docker: - image: mcr.microsoft.com/dotnet/sdk:7.0-jammy # Ubuntu 22.04 - steps: - - when: - condition: << pipeline.parameters.run-csharp-workflow >> - steps: - - checkout - - attach_workspace: - at: /tmp/workspace - - run: - name: "Prepare Native Libs" - command: | - cd gpt4all-bindings/csharp - mkdir -p runtimes/linux-x64/native - cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/ - ls -R runtimes - - restore_cache: - keys: - - gpt4all-csharp-nuget-packages-nix - - run: - name: "Install project dependencies" - command: | - cd gpt4all-bindings/csharp - dotnet restore Gpt4All - - save_cache: - paths: - - ~/.nuget/packages - key: gpt4all-csharp-nuget-packages-nix - - run: - name: Build C# Project - command: | - cd gpt4all-bindings/csharp - dotnet build Gpt4All --configuration Release --nologo - - run: - name: "Run C# Tests" - command: | - cd gpt4all-bindings/csharp - dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" - - run: - name: Test results - command: | - cd gpt4all-bindings/csharp/Gpt4All.Tests - dotnet tool install -g trx2junit - export PATH="$PATH:$HOME/.dotnet/tools" - trx2junit TestResults/*.trx - - store_test_results: - path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults + steps: + - checkout + - attach_workspace: + at: /tmp/workspace + - run: + name: "Prepare Native Libs" + command: | + cd gpt4all-bindings/csharp + mkdir -p runtimes/linux-x64/native + cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/ + ls -R runtimes + - restore_cache: + keys: + - gpt4all-csharp-nuget-packages-nix + - run: + name: "Install project dependencies" + command: | + cd gpt4all-bindings/csharp + dotnet restore Gpt4All + - save_cache: + paths: + - ~/.nuget/packages + key: gpt4all-csharp-nuget-packages-nix + - run: + name: Build C# Project + command: | + cd gpt4all-bindings/csharp + dotnet build Gpt4All --configuration Release --nologo + - run: + name: "Run C# Tests" + command: | + cd gpt4all-bindings/csharp + dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" + - run: + name: Test results + command: | + cd gpt4all-bindings/csharp/Gpt4All.Tests + dotnet tool install -g trx2junit + export PATH="$PATH:$HOME/.dotnet/tools" + trx2junit TestResults/*.trx + - store_test_results: + path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults build-csharp-windows: executor: name: win/default size: large shell: powershell.exe -ExecutionPolicy Bypass - steps: - - when: - condition: << pipeline.parameters.run-csharp-workflow >> - steps: - - checkout - - restore_cache: - keys: - - gpt4all-csharp-nuget-packages-win - - attach_workspace: - at: C:\Users\circleci\workspace - - run: - name: "Prepare Native Libs" - command: | - cd gpt4all-bindings/csharp - mkdir -p runtimes\win-x64\native - cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\ - ls -R runtimes - - run: - name: "Install project dependencies" - command: | - cd gpt4all-bindings/csharp - dotnet.exe restore Gpt4All - - save_cache: - paths: - - C:\Users\circleci\.nuget\packages - key: gpt4all-csharp-nuget-packages-win - - run: - name: Build C# Project - command: | - cd gpt4all-bindings/csharp - dotnet.exe build Gpt4All --configuration Release --nologo - - run: - name: "Run C# Tests" - command: | - cd gpt4all-bindings/csharp - dotnet.exe test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" - - run: - name: Test results - command: | - cd gpt4all-bindings/csharp/Gpt4All.Tests - dotnet tool install -g trx2junit - $Env:Path += ";$Env:USERPROFILE\.dotnet\tools" - trx2junit TestResults/*.trx - - store_test_results: - path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults + steps: + - checkout + - restore_cache: + keys: + - gpt4all-csharp-nuget-packages-win + - attach_workspace: + at: C:\Users\circleci\workspace + - run: + name: "Prepare Native Libs" + command: | + cd gpt4all-bindings/csharp + mkdir -p runtimes\win-x64\native + cp C:\Users\circleci\workspace\runtimes\win-x64\*.dll runtimes\win-x64\native\ + ls -R runtimes + - run: + name: "Install project dependencies" + command: | + cd gpt4all-bindings/csharp + dotnet.exe restore Gpt4All + - save_cache: + paths: + - C:\Users\circleci\.nuget\packages + key: gpt4all-csharp-nuget-packages-win + - run: + name: Build C# Project + command: | + cd gpt4all-bindings/csharp + dotnet.exe build Gpt4All --configuration Release --nologo + - run: + name: "Run C# Tests" + command: | + cd gpt4all-bindings/csharp + dotnet.exe test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" + - run: + name: Test results + command: | + cd gpt4all-bindings/csharp/Gpt4All.Tests + dotnet tool install -g trx2junit + $Env:Path += ";$Env:USERPROFILE\.dotnet\tools" + trx2junit TestResults/*.trx + - store_test_results: + path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults build-csharp-macos: macos: xcode: "14.0.0" steps: - - when: - condition: << pipeline.parameters.run-csharp-workflow >> - steps: - - checkout - - restore_cache: - keys: - - gpt4all-csharp-nuget-packages-nix - - run: - name: Install dependencies - command: | - brew install --cask dotnet-sdk - - attach_workspace: - at: /tmp/workspace - - run: - name: "Prepare Native Libs" - command: | - cd gpt4all-bindings/csharp - mkdir -p runtimes/osx/native - cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/ - cp /tmp/workspace/runtimes/osx-x64/*.metal runtimes/osx/native/ - ls -R runtimes - - run: - name: "Install project dependencies" - command: | - cd gpt4all-bindings/csharp - dotnet restore Gpt4All - - save_cache: - paths: - - ~/.nuget/packages - key: gpt4all-csharp-nuget-packages-nix - - run: - name: Build C# Project - command: | - cd gpt4all-bindings/csharp - dotnet build Gpt4All --configuration Release --nologo - - run: - name: "Run C# Tests" - command: | - cd gpt4all-bindings/csharp - dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" - - run: - name: Test results - command: | - cd gpt4all-bindings/csharp/Gpt4All.Tests - dotnet tool install -g trx2junit - export PATH="$PATH:$HOME/.dotnet/tools" - trx2junit TestResults/*.trx - - store_test_results: - path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults + - checkout + - restore_cache: + keys: + - gpt4all-csharp-nuget-packages-nix + - run: + name: Install dependencies + command: | + brew install --cask dotnet-sdk + - attach_workspace: + at: /tmp/workspace + - run: + name: "Prepare Native Libs" + command: | + cd gpt4all-bindings/csharp + mkdir -p runtimes/osx/native + cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/ + cp /tmp/workspace/runtimes/osx-x64/*.metal runtimes/osx/native/ + ls -R runtimes + - run: + name: "Install project dependencies" + command: | + cd gpt4all-bindings/csharp + dotnet restore Gpt4All + - save_cache: + paths: + - ~/.nuget/packages + key: gpt4all-csharp-nuget-packages-nix + - run: + name: Build C# Project + command: | + cd gpt4all-bindings/csharp + dotnet build Gpt4All --configuration Release --nologo + - run: + name: "Run C# Tests" + command: | + cd gpt4all-bindings/csharp + dotnet test Gpt4All.Tests -v n -c Release --filter "SKIP_ON_CI!=True" --logger "trx" + - run: + name: Test results + command: | + cd gpt4all-bindings/csharp/Gpt4All.Tests + dotnet tool install -g trx2junit + export PATH="$PATH:$HOME/.dotnet/tools" + trx2junit TestResults/*.trx + - store_test_results: + path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults store-and-upload-nupkgs: docker: