Mine randomx on Manjaro. I assume same thing to run on Arch btw
#compile xmrrig on Manjaro
sudo pacman -S base-devel cmake libuv libmicrohttpd openssl hwloc libutil-linux
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build && cd $_
cmake ..
make