These are instructions to cross compile crystal compiler on Ubuntu Server 20-04 on an ARM processor. This was tested on a Raspberry Pi 4 - 4Gb RAM.
From an Ubuntu 20-04 instance, first compile crystal from source. You will need to install crystal to compile crystal.
You can find the instructions here:
https://crystal-lang.org/reference/installation/on_debian_and_ubuntu.html