summaryrefslogtreecommitdiff
path: root/llama.cpp/.github/workflows/check-vendor.yml
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-12 20:57:17 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-12 20:57:17 +0100
commitb333b06772c89d96aacb5490d6a219fba7c09cc6 (patch)
tree211df60083a5946baa2ed61d33d8121b7e251b06 /llama.cpp/.github/workflows/check-vendor.yml
downloadllmnpc-b333b06772c89d96aacb5490d6a219fba7c09cc6.tar.gz
Engage!
Diffstat (limited to 'llama.cpp/.github/workflows/check-vendor.yml')
-rw-r--r--llama.cpp/.github/workflows/check-vendor.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/llama.cpp/.github/workflows/check-vendor.yml b/llama.cpp/.github/workflows/check-vendor.yml
new file mode 100644
index 0000000..1671ed7
--- /dev/null
+++ b/llama.cpp/.github/workflows/check-vendor.yml
@@ -0,0 +1,52 @@
+name: Check vendor
+
+on:
+ workflow_dispatch: # allows manual triggering
+ push:
+ branches:
+ - master
+ paths: [
+ 'vendor/**',
+ 'scripts/sync_vendor.py'
+ ]
+
+ pull_request:
+ types: [opened, synchronize, reopened]
+ paths: [
+ 'vendor/**',
+ 'scripts/sync_vendor.py'
+ ]
+
+jobs:
+ check-vendor:
+ runs-on: ubuntu-slim
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+
+ - name: Setup Python
+ uses: actions/setup-python@v6
+ with:
+ python-version: '3.x'
+
+ - name: Run vendor sync
+ run: |
+ set -euo pipefail
+ python3 scripts/sync_vendor.py
+
+ - name: Check for changes
+ run: |
+ set -euo pipefail
+ # detect modified or untracked files
+ changed=$(git status --porcelain --untracked-files=all || true)
+ if [ -n "$changed" ]; then
+ echo "Vendor sync modified files:"
+ echo "$changed" | awk '{ print $2 }' | sed '/^$/d'
+ echo "Failing because vendor files mismatch. Please update scripts/sync_vendor.py"
+ exit 1
+ else
+ echo "Vendor files are up-to-date."
+ fi