tangled
alpha
login
or
join now
akshitgaur2005.tngl.sh
/
himwant
0
fork
atom
Musings from the mountains
himwant.org
0
fork
atom
overview
issues
pulls
pipelines
Add Depth Anything v3 Burn WASM
akshitgaur2005.tngl.sh
2 months ago
0746cd8f
1ffda5be
0/1
deploy.yaml
failed
11m 52s
+38
-2
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yaml
+38
-2
.tangled/workflows/deploy.yaml
···
7
7
nixpkgs:
8
8
- nodejs
9
9
- bash
10
10
-
10
10
+
- git
11
11
+
- cacert
12
12
+
- cargo
13
13
+
- rustc
14
14
+
- wasm-pack
11
15
steps:
12
16
- name: install dependencies
13
17
command: npm install
14
18
19
19
+
- name: build external wasm models
20
20
+
environment:
21
21
+
MODEL_REPOS: >-
22
22
+
https://tangled.org/akshitgaur2005.tngl.sh/depth_anything_v3_burn|depth
23
23
+
command: |
24
24
+
mkdir -p public/wasm
25
25
+
mkdir -p temp_build
26
26
+
cd temp_build
27
27
+
28
28
+
for entry in $MODEL_REPOS; do
29
29
+
url="${entry%%|*}"
30
30
+
name="${entry##*|}"
31
31
+
32
32
+
echo "--- Processing $name from $url ---"
33
33
+
34
34
+
git clone "$url" "$name"
35
35
+
36
36
+
cd "$name"
37
37
+
echo "Checking out web branch"
38
38
+
git checkout web
39
39
+
40
40
+
echo "Building WASM"
41
41
+
wasm-pack build --target web --out-dir ../../public/wasm/$name --no-typescript --release
42
42
+
43
43
+
rm -f ../../public/wasm/$name/.gitignore
44
44
+
45
45
+
cd ..
46
46
+
done
47
47
+
48
48
+
cd ..
49
49
+
rm -rf temp_build
50
50
+
15
51
- name: build site
16
52
# Use 'npm run build' which runs 'astro build'
17
53
command: npm run build
18
54
19
55
- name: deploy
20
56
command: |
21
21
-
npx --yes wrangler pages deploy dist --project-name himwant --branch main
57
57
+
npx --yes wrangler pages deploy dist --project-name himwant --branch main