mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-25 06:53:05 +00:00
nuget pack and push
This commit is contained in:
parent
f3b6f49684
commit
c92c1af697
@ -453,8 +453,7 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd gpt4all-bindings/csharp
|
cd gpt4all-bindings/csharp
|
||||||
mkdir -p runtimes/linux-x64/native
|
mkdir -p runtimes/linux-x64/native
|
||||||
ls -R /tmp/workspace
|
cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/
|
||||||
cp /tmp/workspace/runtimes/linux-x64/* runtimes/linux-x64/native/
|
|
||||||
ls -R runtimes
|
ls -R runtimes
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
@ -596,13 +595,26 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
- image: mcr.microsoft.com/dotnet/sdk:6.0-jammy # Ubuntu 22.04
|
- image: mcr.microsoft.com/dotnet/sdk:6.0-jammy # Ubuntu 22.04
|
||||||
steps:
|
steps:
|
||||||
- setup_remote_docker
|
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- gpt4all-csharp-nuget-packages-nix
|
||||||
- run:
|
- run:
|
||||||
name: TEST - list libraries
|
name: NuGet Pack
|
||||||
command: |
|
command: |
|
||||||
ls -R /tmp/workspace
|
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:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
@ -5,6 +5,14 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<!-- Windows -->
|
||||||
|
<None Include="..\runtimes\win-x64\native\*.dll" Pack="true" PackagePath="runtimes\win-x64\native\%(Filename)%(Extension)" />
|
||||||
|
<!-- Linux -->
|
||||||
|
<None Include="..\runtimes\linux-x64\native\*.so" Pack="true" PackagePath="runtimes\linux-x64\native\%(Filename)%(Extension)" />
|
||||||
|
<!-- MacOS -->
|
||||||
|
<None Include="..\runtimes\osx\native\*.dylib" Pack="true" PackagePath="runtimes\osx\native\%(Filename)%(Extension)" />
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user