mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-06 20:09:58 +00:00
csharp: fix NuGet package build (#1951)
Signed-off-by: Jared Van Bortel <jared@nomic.ai> Signed-off-by: Konstantin Semenenko <mail@ksemenenko.com> Co-authored-by: Konstantin Semenenko <mail@ksemenenko.com>
This commit is contained in:
parent
dcb0e6c8a8
commit
5dd7378db4
@ -679,7 +679,7 @@ 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:8.0
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -735,6 +735,10 @@ jobs:
|
|||||||
- 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:
|
||||||
|
name: "Install .NET"
|
||||||
|
command: |
|
||||||
|
choco install -y dotnet-8.0-sdk
|
||||||
- run:
|
- run:
|
||||||
name: "Prepare Native Libs"
|
name: "Prepare Native Libs"
|
||||||
command: |
|
command: |
|
||||||
@ -782,7 +786,8 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
brew install --cask dotnet-sdk
|
brew tap isen-ng/dotnet-sdk-versions
|
||||||
|
brew install --cask dotnet-sdk8-0-100
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- run:
|
- run:
|
||||||
@ -824,7 +829,7 @@ jobs:
|
|||||||
|
|
||||||
store-and-upload-nupkgs:
|
store-and-upload-nupkgs:
|
||||||
docker:
|
docker:
|
||||||
- image: mcr.microsoft.com/dotnet/sdk:6.0-jammy # Ubuntu 22.04
|
- image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
@ -840,9 +845,9 @@ jobs:
|
|||||||
cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/
|
cp /tmp/workspace/runtimes/linux-x64/*.so runtimes/linux-x64/native/
|
||||||
mkdir -p runtimes/win-x64/native
|
mkdir -p runtimes/win-x64/native
|
||||||
cp /tmp/workspace/runtimes/win-x64/*.dll runtimes/win-x64/native/
|
cp /tmp/workspace/runtimes/win-x64/*.dll runtimes/win-x64/native/
|
||||||
mkdir -p runtimes/osx/native
|
#mkdir -p runtimes/osx/native
|
||||||
cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/
|
#cp /tmp/workspace/runtimes/osx-x64/*.dylib runtimes/osx/native/
|
||||||
cp /tmp/workspace/runtimes/osx-x64/*.metal runtimes/osx/native/
|
#cp /tmp/workspace/runtimes/osx-x64/*.metal runtimes/osx/native/
|
||||||
dotnet pack ./Gpt4All/Gpt4All.csproj -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -c Release
|
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
|
dotnet nuget push ./Gpt4All/bin/Release/Gpt4All.*.nupkg -s $NUGET_URL -k $NUGET_TOKEN --skip-duplicate
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
@ -1209,4 +1214,4 @@ workflows:
|
|||||||
- nuget-hold
|
- nuget-hold
|
||||||
- build-csharp-windows
|
- build-csharp-windows
|
||||||
- build-csharp-linux
|
- build-csharp-linux
|
||||||
- build-csharp-macos
|
#- build-csharp-macos
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<NeutralLanguage>en-US</NeutralLanguage>
|
<NeutralLanguage>en-US</NeutralLanguage>
|
||||||
<Version>0.6.3-alpha</Version>
|
<Version>0.6.4-alpha</Version>
|
||||||
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
|
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
|
||||||
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)$(VersionSuffix)</Version>
|
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)$(VersionSuffix)</Version>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- Windows -->
|
<!-- Windows -->
|
||||||
|
@ -32,7 +32,7 @@ public class Gpt4AllModelFactory : IGpt4AllModelFactory
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IGpt4AllModel CreateModel(string modelPath)
|
private Gpt4All CreateModel(string modelPath)
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Creating model path={ModelPath}", modelPath);
|
_logger.LogInformation("Creating model path={ModelPath}", modelPath);
|
||||||
IntPtr error;
|
IntPtr error;
|
||||||
|
Loading…
Reference in New Issue
Block a user