diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index 2c5cb8e9..36735418 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -453,8 +453,7 @@ jobs: command: | cd gpt4all-bindings/csharp mkdir -p runtimes/linux-x64/native - ls -R /tmp/workspace - cp /tmp/workspace/runtimes/linux-x64/* runtimes/linux-x64/native/ + cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/ ls -R runtimes - restore_cache: keys: @@ -596,13 +595,26 @@ jobs: docker: - image: mcr.microsoft.com/dotnet/sdk:6.0-jammy # Ubuntu 22.04 steps: - - setup_remote_docker - attach_workspace: at: /tmp/workspace - - run: - name: TEST - list libraries - command: | - ls -R /tmp/workspace + - checkout + - restore_cache: + keys: + - gpt4all-csharp-nuget-packages-nix + - run: + name: NuGet Pack + command: | + cd gpt4all-bindings/csharp + mkdir -p runtimes/linux-x64/native + cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/ + mkdir -p runtimes/win-x64/native + cp /tmp/workspace/runtimes/win-x64/*.dll runtimes/win-x64/native/ + mkdir -p runtimes/osx/native + cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/ + dotnet pack ./Gpt4All/Gpt4All.csproj -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -c Release + dotnet nuget push ./Gpt4All/bin/Release/Gpt4All.*.nupkg -s $NUGET_URL -k $NUGET_TOKEN --skip-duplicate + - store_artifacts: + path: gpt4all-bindings/csharp/Gpt4All/bin/Release workflows: version: 2 diff --git a/gpt4all-bindings/csharp/Gpt4All/Gpt4All.csproj b/gpt4all-bindings/csharp/Gpt4All/Gpt4All.csproj index 72885512..ed4ed824 100644 --- a/gpt4all-bindings/csharp/Gpt4All/Gpt4All.csproj +++ b/gpt4all-bindings/csharp/Gpt4All/Gpt4All.csproj @@ -5,6 +5,14 @@ enable true + + + + + + + +