-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 1.83 KB
/
ci.yml
File metadata and controls
52 lines (45 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-webgpu-bridge:
name: Build WebGPU Bridge (WASM)
runs-on: ubuntu-latest
env:
LLAMA_CPP_TAG: b9016
steps:
- uses: actions/checkout@v4
- name: Clone llama.cpp source
run: |
git clone --depth 1 --branch "$LLAMA_CPP_TAG" https://github.com/ggml-org/llama.cpp.git third_party/llama_cpp
- name: Setup Emscripten SDK
uses: mymindstorm/setup-emsdk@v14
with:
version: latest
- name: Build bridge artifacts
env:
OUT_DIR: ${{ runner.temp }}/webgpu_bridge_dist
WEBGPU_BRIDGE_BUILD_MEM64: 1
run: ./scripts/build_bridge.sh
- name: Verify outputs
run: |
test -f "${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_bridge.js"
test -f "${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_bridge_worker.js"
test -f "${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core.js"
test -f "${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core.wasm"
test -f "${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core_mem64.js"
test -f "${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core_mem64.wasm"
- name: Upload bridge artifacts
uses: actions/upload-artifact@v4
with:
name: webgpu-bridge-dist
path: |
${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_bridge.js
${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_bridge_worker.js
${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core.js
${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core.wasm
${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core_mem64.js
${{ runner.temp }}/webgpu_bridge_dist/llama_webgpu_core_mem64.wasm