GitHub Action for installing Ninja into the PATH
for the job.
This action downloads the official binaries from the ninja-build repository rather than using a package manager.
Supports Windows, Linux, and macOS.
version
: Version of Ninja to install (default:1.12.1
).platform
: Override platform detection logic.destination
: Target directory for download, added toPATH
(default:${GITHUB_WORKSPACE}/ninja-build
).http_proxy
: Optional proxy server hostname.
jobs:
publish:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
- run: |
mkdir build
cd build
cmake -G Ninja ..
- run: cmake --build build
MIT License. See LICENSE for details.