try to fix cmake not in path

This commit is contained in:
mvenditto 2023-06-16 13:55:14 +01:00 committed by AT
parent 5fe4f25d64
commit ae8bcd9eff

View File

@ -364,18 +364,18 @@ jobs:
- run: - run:
name: Install MinGW64 name: Install MinGW64
command: choco install -y mingw --force --no-progress 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: - run:
name: Install dependencies name: Install dependencies
command: choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System' command: |
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- run: - run:
name: Build C library name: Build C library
command: | command: |
git submodule init git submodule init
git submodule update git submodule update --recursive
cd gpt4all-bindings/csharp cd gpt4all-bindings/csharp
$env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
$env.Path += ";C:\Program Files\CMake\bin"
./build_win-mingw.ps1 ./build_win-mingw.ps1
- run: - run:
name: "Install project dependencies" name: "Install project dependencies"
@ -401,6 +401,18 @@ jobs:
paths: paths:
- "*.dll" - "*.dll"
store-and-upload-nupkgs:
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
workflows: workflows:
version: 2 version: 2
default: default:
@ -480,3 +492,11 @@ workflows:
only: only:
requires: requires:
- hold - hold
- store-and-upload-nupkgs:
filters:
branches:
only:
requires:
- nuget-hold
- build-py-windows
- build-py-linux