Skip to content

Repository files navigation

StepSecurity Maintained Action

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.12.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@v7
    - uses: step-security/gha-setup-ninja@v6
    - run: |
        mkdir build
        cd build
        cmake -G Ninja ..
    - run: cmake --build build

About

GitHub Action to install the ninja build tool to PATH. Secure drop-in replacement for seanmiddleditch/gha-setup-ninja.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages