mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-12 13:21:58 +00:00
ci: build offline installers when pipeline is scheduled (#3436)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
22b8278ef1
commit
64dcf7682e
@ -1869,6 +1869,14 @@ job_allow_tags: &job_allow_tags
|
|||||||
only:
|
only:
|
||||||
- /.*/
|
- /.*/
|
||||||
|
|
||||||
|
# standard chat workflow filter
|
||||||
|
workflow-when-chat-requested: &workflow-when-chat-requested
|
||||||
|
when:
|
||||||
|
and:
|
||||||
|
- or: [ << pipeline.parameters.run-all-workflows >>, << pipeline.parameters.run-chat-workflow >> ]
|
||||||
|
- not:
|
||||||
|
equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
noop:
|
noop:
|
||||||
@ -1879,14 +1887,46 @@ workflows:
|
|||||||
- << pipeline.parameters.run-python-workflow >>
|
- << pipeline.parameters.run-python-workflow >>
|
||||||
- << pipeline.parameters.run-ts-workflow >>
|
- << pipeline.parameters.run-ts-workflow >>
|
||||||
- << pipeline.parameters.run-chat-workflow >>
|
- << pipeline.parameters.run-chat-workflow >>
|
||||||
|
- equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
jobs:
|
jobs:
|
||||||
- noop
|
- noop
|
||||||
|
schedule:
|
||||||
|
# only run when scheduled by CircleCI
|
||||||
|
when:
|
||||||
|
equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
|
jobs:
|
||||||
|
- build-offline-chat-installer-macos:
|
||||||
|
context: gpt4all
|
||||||
|
- build-offline-chat-installer-windows:
|
||||||
|
context: gpt4all
|
||||||
|
- build-offline-chat-installer-windows-arm:
|
||||||
|
context: gpt4all
|
||||||
|
- build-offline-chat-installer-linux:
|
||||||
|
context: gpt4all
|
||||||
|
- sign-online-chat-installer-macos:
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- build-online-chat-installer-macos
|
||||||
|
- notarize-online-chat-installer-macos:
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- sign-online-chat-installer-macos
|
||||||
|
- sign-online-chat-installer-windows:
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- build-online-chat-installer-windows
|
||||||
|
- sign-online-chat-installer-windows-arm:
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- build-online-chat-installer-windows-arm
|
||||||
build-chat-installers-release:
|
build-chat-installers-release:
|
||||||
# only run on main branch tags that start with 'v' and a digit
|
# only run on main branch tags that start with 'v' and a digit
|
||||||
when:
|
when:
|
||||||
and:
|
and:
|
||||||
- equal: [ << pipeline.git.branch >>, main ]
|
- equal: [ << pipeline.git.branch >>, main ]
|
||||||
- matches: { pattern: '^v\d.*', value: << pipeline.git.tag >> }
|
- matches: { pattern: '^v\d.*', value: << pipeline.git.tag >> }
|
||||||
|
- not:
|
||||||
|
equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
jobs:
|
jobs:
|
||||||
- validate-commit-on-main
|
- validate-commit-on-main
|
||||||
- build-offline-chat-installer-macos:
|
- build-offline-chat-installer-macos:
|
||||||
@ -1894,6 +1934,21 @@ workflows:
|
|||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- validate-commit-on-main
|
- validate-commit-on-main
|
||||||
|
- build-offline-chat-installer-windows:
|
||||||
|
<<: *job_allow_tags
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- validate-commit-on-main
|
||||||
|
- build-offline-chat-installer-windows-arm:
|
||||||
|
<<: *job_allow_tags
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- validate-commit-on-main
|
||||||
|
- build-offline-chat-installer-linux:
|
||||||
|
<<: *job_allow_tags
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- validate-commit-on-main
|
||||||
- sign-offline-chat-installer-macos:
|
- sign-offline-chat-installer-macos:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
@ -1904,32 +1959,32 @@ workflows:
|
|||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- sign-offline-chat-installer-macos
|
- sign-offline-chat-installer-macos
|
||||||
- build-offline-chat-installer-windows:
|
|
||||||
<<: *job_allow_tags
|
|
||||||
context: gpt4all
|
|
||||||
requires:
|
|
||||||
- validate-commit-on-main
|
|
||||||
- sign-offline-chat-installer-windows:
|
- sign-offline-chat-installer-windows:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- build-offline-chat-installer-windows
|
- build-offline-chat-installer-windows
|
||||||
- build-offline-chat-installer-windows-arm:
|
|
||||||
<<: *job_allow_tags
|
|
||||||
context: gpt4all
|
|
||||||
requires:
|
|
||||||
- validate-commit-on-main
|
|
||||||
- sign-offline-chat-installer-windows-arm:
|
- sign-offline-chat-installer-windows-arm:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- build-offline-chat-installer-windows-arm
|
- build-offline-chat-installer-windows-arm
|
||||||
- build-offline-chat-installer-linux:
|
- build-online-chat-installer-macos:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- validate-commit-on-main
|
- validate-commit-on-main
|
||||||
- build-online-chat-installer-macos:
|
- build-online-chat-installer-windows:
|
||||||
|
<<: *job_allow_tags
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- validate-commit-on-main
|
||||||
|
- build-online-chat-installer-windows-arm:
|
||||||
|
<<: *job_allow_tags
|
||||||
|
context: gpt4all
|
||||||
|
requires:
|
||||||
|
- validate-commit-on-main
|
||||||
|
- build-online-chat-installer-linux:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
@ -1944,36 +1999,18 @@ workflows:
|
|||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- sign-online-chat-installer-macos
|
- sign-online-chat-installer-macos
|
||||||
- build-online-chat-installer-windows:
|
|
||||||
<<: *job_allow_tags
|
|
||||||
context: gpt4all
|
|
||||||
requires:
|
|
||||||
- validate-commit-on-main
|
|
||||||
- sign-online-chat-installer-windows:
|
- sign-online-chat-installer-windows:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- build-online-chat-installer-windows
|
- build-online-chat-installer-windows
|
||||||
- build-online-chat-installer-windows-arm:
|
|
||||||
<<: *job_allow_tags
|
|
||||||
context: gpt4all
|
|
||||||
requires:
|
|
||||||
- validate-commit-on-main
|
|
||||||
- sign-online-chat-installer-windows-arm:
|
- sign-online-chat-installer-windows-arm:
|
||||||
<<: *job_allow_tags
|
<<: *job_allow_tags
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
requires:
|
requires:
|
||||||
- build-online-chat-installer-windows-arm
|
- build-online-chat-installer-windows-arm
|
||||||
- build-online-chat-installer-linux:
|
|
||||||
<<: *job_allow_tags
|
|
||||||
context: gpt4all
|
|
||||||
requires:
|
|
||||||
- validate-commit-on-main
|
|
||||||
build-chat-offline-installers:
|
build-chat-offline-installers:
|
||||||
when:
|
<<: *workflow-when-chat-requested
|
||||||
or:
|
|
||||||
- << pipeline.parameters.run-all-workflows >>
|
|
||||||
- << pipeline.parameters.run-chat-workflow >>
|
|
||||||
jobs:
|
jobs:
|
||||||
- build-hold:
|
- build-hold:
|
||||||
type: approval
|
type: approval
|
||||||
@ -2014,10 +2051,7 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- build-hold
|
- build-hold
|
||||||
build-chat-online-installers:
|
build-chat-online-installers:
|
||||||
when:
|
<<: *workflow-when-chat-requested
|
||||||
or:
|
|
||||||
- << pipeline.parameters.run-all-workflows >>
|
|
||||||
- << pipeline.parameters.run-chat-workflow >>
|
|
||||||
jobs:
|
jobs:
|
||||||
- build-hold:
|
- build-hold:
|
||||||
type: approval
|
type: approval
|
||||||
@ -2058,10 +2092,7 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- build-hold
|
- build-hold
|
||||||
build-and-test-gpt4all-chat:
|
build-and-test-gpt4all-chat:
|
||||||
when:
|
<<: *workflow-when-chat-requested
|
||||||
or:
|
|
||||||
- << pipeline.parameters.run-all-workflows >>
|
|
||||||
- << pipeline.parameters.run-chat-workflow >>
|
|
||||||
jobs:
|
jobs:
|
||||||
- hold:
|
- hold:
|
||||||
type: approval
|
type: approval
|
||||||
@ -2084,14 +2115,17 @@ workflows:
|
|||||||
- or:
|
- or:
|
||||||
- << pipeline.parameters.run-all-workflows >>
|
- << pipeline.parameters.run-all-workflows >>
|
||||||
- << pipeline.parameters.run-python-workflow >>
|
- << pipeline.parameters.run-python-workflow >>
|
||||||
|
- not:
|
||||||
|
equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
jobs:
|
jobs:
|
||||||
- deploy-docs:
|
- deploy-docs:
|
||||||
context: gpt4all
|
context: gpt4all
|
||||||
build-python:
|
build-python:
|
||||||
when:
|
when:
|
||||||
or:
|
and:
|
||||||
- << pipeline.parameters.run-all-workflows >>
|
- or: [ << pipeline.parameters.run-all-workflows >>, << pipeline.parameters.run-python-workflow >> ]
|
||||||
- << pipeline.parameters.run-python-workflow >>
|
- not:
|
||||||
|
equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
jobs:
|
jobs:
|
||||||
- pypi-hold:
|
- pypi-hold:
|
||||||
<<: *job_only_main
|
<<: *job_only_main
|
||||||
@ -2117,9 +2151,10 @@ workflows:
|
|||||||
- build-py-macos
|
- build-py-macos
|
||||||
build-bindings:
|
build-bindings:
|
||||||
when:
|
when:
|
||||||
or:
|
and:
|
||||||
- << pipeline.parameters.run-all-workflows >>
|
- or: [ << pipeline.parameters.run-all-workflows >>, << pipeline.parameters.run-ts-workflow >> ]
|
||||||
- << pipeline.parameters.run-ts-workflow >>
|
- not:
|
||||||
|
equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
|
||||||
jobs:
|
jobs:
|
||||||
- backend-hold:
|
- backend-hold:
|
||||||
type: approval
|
type: approval
|
||||||
|
Loading…
Reference in New Issue
Block a user