char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Georgi Gerganovci : move most slim jobs to self-hosted runners (#23619)28123a393

char/aliceai-t5-moe
1.4 KiB44 linesraw
1name: Update Operations Documentation
2
3on:
4    push:
5        paths:
6            - '.github/workflows/update-ops-docs.yml'
7            - 'docs/ops.md'
8            - 'docs/ops/**'
9            - 'scripts/create_ops_docs.py'
10    pull_request:
11        paths:
12            - '.github/workflows/update-ops-docs.yml'
13            - 'docs/ops.md'
14            - 'docs/ops/**'
15            - 'scripts/create_ops_docs.py'
16
17jobs:
18    update-ops-docs:
19        runs-on: [self-hosted, fast, ARM64]
20
21        steps:
22        - name: Checkout repository
23          uses: actions/checkout@v6
24
25        - name: Set up Python
26          uses: actions/setup-python@v6
27          with:
28              python-version: '3.x'
29
30        - name: Generate operations documentation to temporary file
31          run: |
32              mkdir -p /tmp/ops_check
33              ./scripts/create_ops_docs.py /tmp/ops_check/ops.md
34
35        - name: Check if docs/ops.md matches generated version
36          run: |
37              if ! diff -q docs/ops.md /tmp/ops_check/ops.md; then
38                  echo "Operations documentation (docs/ops.md) is not up to date with the backend CSV files."
39                  echo "To fix: run ./scripts/create_ops_docs.py and commit the updated docs/ops.md along with your changes"
40                  echo "Differences found:"
41                  diff docs/ops.md /tmp/ops_check/ops.md || true
42                  exit 1
43              fi
44              echo "Operations documentation is up to date."