Running Deno on ARMv8 on Linux has one problem: there’s no released binary (see here for v1.13 which is the current version when I’m typing this). Luckily it’s very easy to build Deno:
cargo install is all you need…
Unfortunately my little R2S with 1GB RAM is way too under-powered for this: E.g. the cargo build uses 2.5GB in /tmp. /tmp by default is 50% of physical RAM, so 0.5GB, which is way too small. While I could work around this by mounting a USB stick to the USB 2.0 port of the R2S, it won’t be fast.
AWS t4g.medium to the rescue! Spin up a t4g.medium instance (I use Terraform), and then execute
sudo yum groupinstall 'Development Tools' curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh cargo install deno
and some not-so-short time later you got an ARMv8 binary in ~/.cargo/bin:
[ec2-user@ip-172-31-45-62 ~]$ ls -l ~/.cargo/bin/ total 272456 -rwxr-xr-x 12 ec2-user ec2-user 14255928 Aug 12 09:13 cargo [...] -rwxrwxr-x 1 ec2-user ec2-user 107928560 Aug 12 09:59 deno [...]
Copy that binary and it works fine on my little R2S.