change build-bindings-backend when condition

This commit is contained in:
mvenditto 2023-06-18 23:19:21 +02:00 committed by AT
parent 289c96cdf8
commit 99ca80cf1a
2 changed files with 33 additions and 34 deletions

View File

@ -11,7 +11,6 @@ workflows:
base-revision: main base-revision: main
config-path: .circleci/continue_config.yml config-path: .circleci/continue_config.yml
mapping: | mapping: |
gpt4all-bindings/.* run-bindings-workflow true
gpt4all-bindings/python/.* run-python-workflow true gpt4all-bindings/python/.* run-python-workflow true
gpt4all-bindings/csharp/.* run-csharp-workflow true gpt4all-bindings/csharp/.* run-csharp-workflow true
gpt4all-backend/.* run-chat-workflow true gpt4all-backend/.* run-chat-workflow true

View File

@ -13,9 +13,6 @@ parameters:
run-chat-workflow: run-chat-workflow:
type: boolean type: boolean
default: false default: false
run-bindings-workflow:
type: boolean
default: false
run-csharp-workflow: run-csharp-workflow:
type: boolean type: boolean
default: false default: false
@ -687,35 +684,6 @@ workflows:
- build-py-windows - build-py-windows
- build-py-linux - build-py-linux
- build-py-macos - build-py-macos
build-bindings-backend:
when: << pipeline.parameters.run-bindings-workflow >>
jobs:
- hold:
type: approval
- build-bindings-backend-linux:
filters:
branches:
only:
requires:
- hold
- build-bindings-backend-macos:
filters:
branches:
only:
requires:
- hold
- build-bindings-backend-windows:
filters:
branches:
only:
requires:
- hold
- build-bindings-backend-windows-msvc:
filters:
branches:
only:
requires:
- hold
build-csharp-deploy: build-csharp-deploy:
when: << pipeline.parameters.run-csharp-workflow >> when: << pipeline.parameters.run-csharp-workflow >>
jobs: jobs:
@ -750,3 +718,35 @@ workflows:
- build-csharp-windows - build-csharp-windows
- build-csharp-linux - build-csharp-linux
- build-csharp-macos - build-csharp-macos
build-bindings-backend:
when:
or:
- << pipeline.parameters.run-python-workflow >>
- << pipeline.parameters.run-csharp-workflow >>
jobs:
- hold:
type: approval
- build-bindings-backend-linux:
filters:
branches:
only:
requires:
- hold
- build-bindings-backend-macos:
filters:
branches:
only:
requires:
- hold
- build-bindings-backend-windows:
filters:
branches:
only:
requires:
- hold
- build-bindings-backend-windows-msvc:
filters:
branches:
only:
requires:
- hold