Skip to content

Distribute and run LLMs with a single file.

actions: add labeler + editorconfig github actions (#443)

Brian92be52a3bbde
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000..066eb484
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,29 @@
+# https://github.com/actions/labeler
+documentation:
+ - changed-files:
+ - any-glob-to-any-file:
+ - README.md
+ - LICENSE
+ - docs/**
+testing:
+ - changed-files:
+ - any-glob-to-any-file:
+ - tests/**
+build:
+ - changed-files:
+ - any-glob-to-any-file:
+ - cmake/**
+ - CMakeLists.txt
+ - CMakePresets.json
+ - codecov.yml
+llama.cpp:
+ - changed-files:
+ - any-glob-to-any-file: llama.cpp/**
+llamafile:
+ - changed-files:
+ - any-glob-to-any-file: llamafile/**
+devops:
+ - changed-files:
+ - any-glob-to-any-file:
+ - .devops/**
+ - .github/**
\ No newline at end of file
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml
new file mode 100644
index 00000000..ae86e992
--- /dev/null
+++ b/.github/workflows/editorconfig.yml
@@ -0,0 +1,27 @@
+name: EditorConfig Checker
+
+on:
+ workflow_dispatch: # allows manual triggering
+ inputs:
+ create_release:
+ description: 'Create new release'
+ required: true
+ type: boolean
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ editorconfig:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: editorconfig-checker/action-editorconfig-checker@main
+ - run: editorconfig-checker
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 00000000..799e4d57
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,17 @@
+name: "Pull Request Labeler"
+on:
+- pull_request_target
+
+jobs:
+ labeler:
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ repository: "Mozilla-Ocho/llamafile"
+ - uses: actions/labeler@v5
+ with:
+ configuration-path: '.github/labeler.yml'