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