Skip to content

[Github Actions] Download ninja binary from official repository

Notifications You must be signed in to change notification settings

wirekang/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

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-ninja

shell: bash is required on Windows.

API

platform: win | linux | mac (required)
tag: git tag name(e.g. v1.11.1) (optional)

Example

uses: wirekang/setup-ninja@v1
  with:
    platform: win
    tag: v1.11.1

How it works

1. Make url from input

`https://github.com/ninja-build/ninja/releases/download/${TAG}/ninja-${PLATFORM}.zip`
platform: win
tag: v1.11.1

url: https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip

2. Download and unzip using unzip command.

3. Add to PATH

About

[Github Actions] Download ninja binary from official repository

Topics

Resources

Stars

Watchers

Forks