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
2da8e113
1ffda5be
1/1
deploy.yaml
success
13m 30s
+40
-2
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yaml
+40
-2
.tangled/workflows/deploy.yaml
reviewed
···
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
15
15
+
- gcc
16
16
+
- clang
11
17
steps:
12
18
- name: install dependencies
13
19
command: npm install
14
20
21
21
+
- name: build external wasm models
22
22
+
environment:
23
23
+
MODEL_REPOS: >-
24
24
+
https://tangled.org/akshitgaur2005.tngl.sh/depth_anything_v3_burn|depth
25
25
+
command: |
26
26
+
mkdir -p public/wasm
27
27
+
mkdir -p temp_build
28
28
+
cd temp_build
29
29
+
30
30
+
for entry in $MODEL_REPOS; do
31
31
+
url="${entry%%|*}"
32
32
+
name="${entry##*|}"
33
33
+
34
34
+
echo "--- Processing $name from $url ---"
35
35
+
36
36
+
git clone "$url" "$name"
37
37
+
38
38
+
cd "$name"
39
39
+
echo "Checking out web branch"
40
40
+
git checkout web
41
41
+
42
42
+
echo "Building WASM"
43
43
+
wasm-pack build --target web --out-dir ../../public/wasm/$name --no-typescript --release
44
44
+
45
45
+
rm -f ../../public/wasm/$name/.gitignore
46
46
+
47
47
+
cd ..
48
48
+
done
49
49
+
50
50
+
cd ..
51
51
+
rm -rf temp_build
52
52
+
15
53
- name: build site
16
54
# Use 'npm run build' which runs 'astro build'
17
55
command: npm run build
18
56
19
57
- name: deploy
20
58
command: |
21
21
-
npx --yes wrangler pages deploy dist --project-name himwant --branch main
59
59
+
npx --yes wrangler pages deploy dist --project-name himwant --branch main