char-fork/llama.cpp

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

Sigbjørn Skjæretci : disable npm gha cache (#28600)03fa73cb2

char/aliceai-t5-moe
1.5 KiB59 linesraw
1name: UI Build
2
3on:
4  workflow_call:
5    inputs:
6      ui_version:
7        description: 'Version string embedded in build.json (e.g. b1234); defaults to b<commit-count>'
8        required: false
9        type: string
10
11jobs:
12  build:
13    runs-on: ubuntu-slim
14    env:
15      BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
16
17    steps:
18      - name: Checkout code
19        uses: actions/checkout@v6
20        with:
21          fetch-depth: 0
22
23      - name: Resolve UI version
24        id: version
25        run: |
26          version="${{ inputs.ui_version }}"
27          if [ -z "$version" ]; then
28            version="b$(git rev-list --count HEAD)"
29          fi
30          echo "ui_version=${version}" >> $GITHUB_OUTPUT
31
32      - name: Setup Node.js
33        uses: actions/setup-node@v6
34        with:
35          node-version: "24"
36          # cache: "npm"
37          # cache-dependency-path: "tools/ui/package-lock.json"
38          package-manager-cache: false
39
40      - name: Install dependencies
41        run: npm ci
42        working-directory: tools/ui
43
44      - name: Build application
45        env:
46          LLAMA_BUILD_NUMBER: ${{ steps.version.outputs.ui_version }}
47        run: npm run build
48        working-directory: tools/ui
49
50      - name: Run PWA unit tests (versioned build output)
51        run: npx vitest --project=unit --run tests/unit/pwa.spec.ts
52        working-directory: tools/ui
53
54      - name: Upload built UI
55        uses: actions/upload-artifact@v6
56        with:
57          name: llama-ui.zip
58          path: tools/ui/dist/
59          retention-days: 1