File tree Expand file tree Collapse file tree 2 files changed +55
-1
lines changed Expand file tree Collapse file tree 2 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Check vendor
2+
3+ on :
4+ workflow_dispatch : # allows manual triggering
5+ push :
6+ branches :
7+ - master
8+ paths : [
9+ ' vendor/**' ,
10+ ' scripts/sync_vendor.py'
11+ ]
12+
13+ pull_request :
14+ types : [opened, synchronize, reopened]
15+ paths : [
16+ ' vendor/**' ,
17+ ' scripts/sync_vendor.py'
18+ ]
19+
20+ jobs :
21+ check-vendor :
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ with :
28+ fetch-depth : 0
29+
30+ - name : Setup Python
31+ uses : actions/setup-python@v4
32+ with :
33+ python-version : ' 3.x'
34+
35+ - name : Run vendor sync
36+ run : |
37+ set -euo pipefail
38+ python3 scripts/sync_vendor.py
39+
40+ - name : Check for changes
41+ run : |
42+ set -euo pipefail
43+ # detect modified or untracked files
44+ changed=$(git status --porcelain --untracked-files=all || true)
45+ if [ -n "$changed" ]; then
46+ echo "Vendor sync modified files:"
47+ echo "$changed" | awk '{ print $2 }' | sed '/^$/d'
48+ echo "Failing because vendor files mismatch. Please update scripts/sync_vendor.py"
49+ exit 1
50+ else
51+ echo "Vendor files are up-to-date."
52+ fi
Original file line number Diff line number Diff line change 1212
1313 "https://raw.githubusercontent.com/nothings/stb/refs/heads/master/stb_image.h" : "vendor/stb/stb_image.h" ,
1414
15- "https://github.com/mackron/miniaudio/raw/refs/tags/0.11.22/miniaudio.h" : "vendor/miniaudio/miniaudio.h" ,
15+ # not using latest tag to avoid this issue: https://github.com/ggml-org/llama.cpp/pull/17179#discussion_r2515877926
16+ # "https://github.com/mackron/miniaudio/raw/refs/tags/0.11.23/miniaudio.h": "vendor/miniaudio/miniaudio.h",
17+ "https://github.com/mackron/miniaudio/raw/669ed3e844524fcd883231b13095baee9f6de304/miniaudio.h" : "vendor/miniaudio/miniaudio.h" ,
1618
1719 "https://raw.githubusercontent.com/yhirose/cpp-httplib/refs/tags/v0.27.0/httplib.h" : "vendor/cpp-httplib/httplib.h" ,
1820}
You can’t perform that action at this time.
0 commit comments