12# CI for src.rest: deno task check (fmt, lint, typecheck), then the native iroh3# addon built from source and deno task test against it, as the ci workflow does.4set -eu5# Cargo builds into a cache outside the worktree so iroh's dependencies are6# compiled once, not on every run; LOFI_NODE_IROH points the loader at it.7target=${XDG_CACHE_HOME:-$HOME/.cache}/lofi-node/iroh-js-target8mkdir -p "$target"9case $(uname -s) in10Darwin) lib=libnumber0_iroh.dylib ;;11*) lib=libnumber0_iroh.so ;;12esac13deno install14deno task check15CARGO_TARGET_DIR=$target deno task native16LOFI_NODE_IROH=$target/release/$lib deno task test