Musings from the mountains himwant.org

Add Depth Anything v3 Burn WASM

+40 -2
+40 -2
.tangled/workflows/deploy.yaml
··· 7 7 nixpkgs: 8 8 - nodejs 9 9 - bash 10 - 10 + - git 11 + - cacert 12 + - cargo 13 + - rustc 14 + - wasm-pack 15 + - gcc 16 + - clang 11 17 steps: 12 18 - name: install dependencies 13 19 command: npm install 14 20 21 + - name: build external wasm models 22 + environment: 23 + MODEL_REPOS: >- 24 + https://tangled.org/akshitgaur2005.tngl.sh/depth_anything_v3_burn|depth 25 + command: | 26 + mkdir -p public/wasm 27 + mkdir -p temp_build 28 + cd temp_build 29 + 30 + for entry in $MODEL_REPOS; do 31 + url="${entry%%|*}" 32 + name="${entry##*|}" 33 + 34 + echo "--- Processing $name from $url ---" 35 + 36 + git clone "$url" "$name" 37 + 38 + cd "$name" 39 + echo "Checking out web branch" 40 + git checkout web 41 + 42 + echo "Building WASM" 43 + wasm-pack build --target web --out-dir ../../public/wasm/$name --no-typescript --release 44 + 45 + rm -f ../../public/wasm/$name/.gitignore 46 + 47 + cd .. 48 + done 49 + 50 + cd .. 51 + rm -rf temp_build 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 - npx --yes wrangler pages deploy dist --project-name himwant --branch main 59 + npx --yes wrangler pages deploy dist --project-name himwant --branch main