The LlamaSharp team has a build system that outputs llama.cpp for all major platforms.
Repo: https://github.com/SciSharp/LLamaSharp
Build Workflow: https://github.com/SciSharp/LLamaSharp/blob/master/.github/workflows/compile.yml
Git pull submodule updates: git submodule update --recursive --remote