mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-06-01 06:00:36 +00:00
* ci : remove tag from build-self-hosted.yml * ci : slim -> self-hosted * ci : prevent heavy CPU jobs from running on fast runners * ci : prevent cmake pkg to run on dedicated fast runners * ci : try to bump 3.11 -> 3.13 * ci : move lint back to 3.11 * ci : back to 3.11 * ci : add comment about UI jobs * ci : move python requirements check to CPU runners this job is a bit slow for a dedicated "fast" runner * ci : add self-hosted ui workflow * ci : fix UI naming * tmp to check if arm64 fast is compatible with all jobs * revert last commit
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
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: [self-hosted, fast]
|
|
|
|
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
|