char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
4d19b2876
char/aliceai-t5-moe
1name : UI (self-hosted) 2 3# these are the same as ui.yml, but with self-hosted runners 4# the jobs are lighter because they don't need to install Node.js or Playwright browsers 5# the runner has pre-installed Playwright browsers for @playwright/test (1.56.1) at /ms-playwright/ 6 7on : 8workflow_dispatch : 9inputs : 10sha : 11description : 'Commit SHA1 to build' 12required : false 13type : string 14push : 15branches : 16- master 17paths : [ 18'.github/workflows/ui-self-hosted.yml' , 19'.github/workflows/ui-build-self-hosted.yml' , 20'tools/ui/**.*' , 21'tools/server/tests/**.*' 22] 23pull_request : 24types : [ opened , synchronize , reopened ] 25paths : [ 26'.github/workflows/ui-self-hosted.yml' , 27'.github/workflows/ui-build-self-hosted.yml' , 28'tools/ui/**.*' , 29'tools/server/tests/**.*' 30] 31 32env : 33LLAMA_ARG_LOG_COLORS : 1 34LLAMA_ARG_LOG_PREFIX : 1 35LLAMA_ARG_LOG_TIMESTAMPS : 1 36LLAMA_ARG_LOG_VERBOSITY : 10 37 38concurrency : 39group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.run_id }} 40cancel-in-progress : true 41 42jobs : 43ui-build : 44name : Build static output 45uses : ./.github/workflows/ui-build-self-hosted.yml 46 47ui-checks : 48name : Checks 49needs : ui-build 50runs-on : [ self-hosted , PLAYWRIGHT ] 51continue-on-error : true 52steps : 53- name : Checkout code 54uses : actions/checkout@v6 55with : 56fetch-depth : 0 57ref : ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }} 58 59- name : Install dependencies 60id : setup 61run : npm ci 62working-directory : tools/ui 63 64- name : Download built UI artifacts 65uses : actions/download-artifact@v6 66with : 67name : llama-ui.zip 68path : tools/ui/dist/ 69 70- name : Run type checking 71if : ${{ always() && steps.setup.conclusion == 'success' }} 72run : npm run check 73working-directory : tools/ui 74 75- name : Run linting 76if : ${{ always() && steps.setup.conclusion == 'success' }} 77run : npm run lint 78working-directory : tools/ui 79 80- name : Run Client tests 81if : ${{ always() && steps.setup.conclusion == 'success' }} 82run : npm run test:client 83working-directory : tools/ui 84 85- name : Run Unit tests 86if : ${{ always() && steps.setup.conclusion == 'success' }} 87run : npm run test:unit 88working-directory : tools/ui 89 90e2e-tests : 91name : E2E Tests 92needs : ui-build 93runs-on : [ self-hosted , PLAYWRIGHT ] 94steps : 95- name : Checkout code 96uses : actions/checkout@v6 97with : 98fetch-depth : 0 99ref : ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }} 100 101- name : Install dependencies 102id : setup 103run : npm ci 104working-directory : tools/ui 105 106- name : Download built UI artifacts 107uses : actions/download-artifact@v6 108with : 109name : llama-ui.zip 110path : tools/ui/dist/ 111 112- name : Build Storybook 113if : ${{ always() && steps.setup.conclusion == 'success' }} 114run : npm run build-storybook 115working-directory : tools/ui 116 117- name : Run UI tests 118if : ${{ always() && steps.setup.conclusion == 'success' }} 119run : npm run test:ui -- --testTimeout=60000 120working-directory : tools/ui 121 122- name : Run E2E tests 123if : ${{ always() && steps.setup.conclusion == 'success' }} 124run : npm run test:e2e 125working-directory : tools/ui