This repository provides precompiled Ninja binaries for Linux. The binaries are compiled with the GCC Toolchain targeting older glibc versions, ensuring compatibility across a wide range of Linux distributions. GitHub CI workflows are used to automate the build process: pipelines run daily, but new builds are triggered only when a new Ninja release is available.
- Dynamically linked with old glibc version. For details, see the GCC Toolchain.
- Statically linked with libstdc++ and libgcc.
If you prefer not to build the Ninja yourself, a precompiled Ninja for each supported architecture can be downloaded from the releases page.
- x86_64-linux-gnu:
sudo curl -sSLo /usr/local/bin/ninja https://github.com/prepkg/ninja/releases/latest/download/ninja-x86_64-linux-gnu
sudo chmod a+x /usr/local/bin/ninja
- aarch64-linux-gnu:
sudo curl -sSLo /usr/local/bin/ninja https://github.com/prepkg/ninja/releases/latest/download/ninja-aarch64-linux-gnu
sudo chmod a+x /usr/local/bin/ninja
- Clone the repository:
git clone https://github.com/prepkg/ninja.git && cd ninja
- Build the Docker image:
./setup.sh build-image
- Build the application:
./setup.sh build-app
After compilation, the binaries for each architecture will be available in the build
directory.