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