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