Skip to content
terminal

GitHub Action

Install ninja-build tool

v5 Latest version

Install ninja-build tool

terminal

Install ninja-build tool

Installs ninja and adds it to the path

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install ninja-build tool

uses: seanmiddleditch/gha-setup-ninja@v5

Learn more about this action in seanmiddleditch/gha-setup-ninja

Choose a version

setup-ninja

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 logic
  • destination: Target directory for download, added to PATH (default: ${GITHUB_WORKSPACE}/ninja-build)
  • http_proxy: Optional proxy server hostname

License

MIT License. See LICENSE for details.

Usage Example

jobs:
  publish:
    - uses: actions/checkout@master
    - uses: seanmiddleditch/gha-setup-ninja@master
    - run: |
      mkdir build
      cd build
      cmake -G Ninja ..
    - run: cmake --build build