Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

seanmiddleditch/gha-setup-ninja

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-ninja

Warning

This action is no longer necessary, as ninja is now included on all default GitHub runner instances. If you do still need this functionality, making a fork of this action into your repository or organization is the recommended path. No further development or maintenance will occur in this repo.

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@master
    - uses: seanmiddleditch/gha-setup-ninja@master
    - run: |
      mkdir build
      cd build
      cmake -G Ninja ..
    - run: cmake --build build

About

GitHub Action to install the ninja build tool to PATH

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7