diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 3bda7023..83677016 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -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 diff --git a/.github/workflows/gpt4all.yml b/.github/workflows/gpt4all.yml new file mode 100644 index 00000000..58f3012e --- /dev/null +++ b/.github/workflows/gpt4all.yml @@ -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 + +