Skip to content

Commit

Permalink
Add basic GHA jobs
Browse files Browse the repository at this point in the history
Converts existing GHA job to new workflow model

Adds build jobs for Windows, Linux, and MacOS

Signed-off-by: John Parent <john.parent@kitware.com>
  • Loading branch information
johnwparent committed Jul 17, 2024
1 parent ca02234 commit 4f8d070
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/gpt4all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Serves as the entrypoint for all of Gpt4All's GHA CI workflows
# all other workflows should either be a manual trigger job independent
# of PR context (see close_issues.yml) or should be dispatched by this
# workflow


name: gpt4all-ci

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
changes:
runs-on: ubuntu-latest
outputs:
core: ${{ steps.changes.outputs.core }}
chat: ${{ steps.changes.outputs.chat }}
python: ${{ steps.changes.outputs.python }}
typescript: ${{ steps.changes.outputs.typescript }}
steps:
- uses: actions/checkout@v3
with:
fetch_depth: 0
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
core:
- '.github/workflows/**'
- 'gpt4all-backend/**'
chat:
- 'gpt4all-chat/**'
python:
- 'gpt4all-bindings/python/**'
typescript:
- 'gpt4all-bindings/typescript/**'
spellcheck:
uses: ./.github/workflows/codespell.yml
secrets: inherit
build-chat:
name: "Build Gpt4All chat"
needs: [changes]
if: ${{ needs.changes.outputs.core || needs.changes.outputs.chat }}
uses: ./.github/workflows/build-chat.yml


0 comments on commit 4f8d070

Please sign in to comment.