carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1#!/usr/bin/env bash
2# Runs a command inside the emulated Debian arm64 root (proot + qemu-user),
3# with the bakeoff repo mounted at the same path and $HOME/.cache bound in.
4# scripts/arm64.sh <command> [args...]
5set -euo pipefail
6TC=${BAKEOFF_TOOLCHAINS:-$HOME/.local/share/bakeoff-toolchains}
7repo=$(cd "$(dirname "$0")/.." && pwd)
8exec "$TC/proot/proot" -0 -q "$TC/qemu/qemu-aarch64-static" -r "$TC/arm64root" \
9 -b /dev -b /proc -b /sys -b /etc/resolv.conf -b "$repo" -b "${TMPDIR:-/tmp}" -b "$TC" \
10 -w "$PWD" /usr/bin/env -i HOME=/root PATH=/root/.local/bin:/root/.ghcup/bin:/root/.cargo/bin:/usr/local/bin:/usr/bin:/bin \
11 TERM=dumb LANG=C.UTF-8 "$@"
12