Skip to content

GitHub Action to install the ninja build tool to PATH.

License

Notifications You must be signed in to change notification settings

larziwau/gha-setup-ninja

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Ninja

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.

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.

Usage Example

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

License

MIT License. See LICENSE for details.

About

GitHub Action to install the ninja build tool to PATH.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%