mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-18 01:12:47 +00:00
add build-csharp-windows (mingw)
This commit is contained in:
parent
b3f4169466
commit
23af041673
@ -352,6 +352,54 @@ jobs:
|
|||||||
root: gpt4all-bindings/csharp/runtimes/linux-x64/native
|
root: gpt4all-bindings/csharp/runtimes/linux-x64/native
|
||||||
paths:
|
paths:
|
||||||
- "*.so"
|
- "*.so"
|
||||||
|
|
||||||
|
build-csharp-windows:
|
||||||
|
executor:
|
||||||
|
name: win/default
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- gpt4all-csharp-bindings
|
||||||
|
- run:
|
||||||
|
name: Install MinGW64
|
||||||
|
command: choco install -y mingw --force --no-progress
|
||||||
|
- run:
|
||||||
|
name: Add MinGW64 to PATH
|
||||||
|
command: $env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
||||||
|
- run:
|
||||||
|
name: Build C library
|
||||||
|
command: |
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
./build_win-mingw.ps1
|
||||||
|
- 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-bindings
|
||||||
|
- run:
|
||||||
|
name: "Run C# Tests"
|
||||||
|
command: |
|
||||||
|
cd gpt4all-bindings/csharp
|
||||||
|
dotnet.exe test Gpt4All.Tests --filter SKIP_ON_CI=False
|
||||||
|
- run:
|
||||||
|
name: Build C# Project
|
||||||
|
command: |
|
||||||
|
cd gpt4all-bindings/csharp
|
||||||
|
dotnet.exe build Gpt4All --configuration Release
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: gpt4all-bindings/csharp/runtimes/windows-x64/native
|
||||||
|
paths:
|
||||||
|
- "*.dll"
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
default:
|
default:
|
||||||
@ -425,3 +473,9 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
requires:
|
requires:
|
||||||
- hold
|
- hold
|
||||||
|
- build-csharp-windows:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
requires:
|
||||||
|
- hold
|
Loading…
Reference in New Issue
Block a user