Skip to content

Install premake5

Actions

About

Install premake5
v7
Latest
Star (1)

Tags

 (1)

@Jarod42/install-premake5

Install premake5 for your workflow.

Usage

Inputs

- uses: Jarod42/install-premake5@v7
  with:
    # Alternative premake fork repository to use
    # Optional. Default to 'premake/premake-core'
    repository:

    # The branch, tag or SHA to use
    # Optional. Default to 'v5.0.0-beta8'
    ref:

    # Alternative temporary path where to checkout and build premake
    # Optional. Default to '.premake-build'
    path:

    # For windows, alternative visual to build premake (requires for `run-on windows-2019` to use `msdev: vs2019`)
    # one of vs2019 or vs2022
    # Optional. Default to 'vs2022'
    msdev:

Examples

Typical default usage on Windows

runs-on: windows-latest

steps:
- name: Installing premake5
  uses: Jarod42/install-premake5@v7

- name: Checkout
  uses: actions/checkout@v6

- name: run premake5
  run: premake5 vs2022 --to=solution/vs2022

- name: Add msbuild to PATH
  uses: microsoft/setup-msbuild@v2

- name: build
  run: |
    cd solution/vs2022
    msbuild.exe /property:Configuration=Release MySolution.sln

Typical default usage on Ubuntu:

runs-on: ubuntu-latest

steps:
- name: Installing premake5
  uses: Jarod42/install-premake5@v7

- name: Checkout
  uses: actions/checkout@v6

- name: run premake5
  run: premake5 gmake --to=solution/gmake

- name: build
  run: |
    cd solution/gmake
    make

Typical default usage on MacOS:

runs-on: macos-latest

steps:
- name: Installing premake5
  uses: Jarod42/install-premake5@v7

- name: Checkout
  uses: actions/checkout@v6

- name: run premake5
  run: premake5 xcode4 --to=solution/xcode4

- name: build
  run: |
    cd solution/xcode4
    xcodebuild -project MyProject.xcodeproj -configuration Release -scheme MyProject build

Typical default usage on Windows-2019

runs-on: windows-2019

steps:
- name: Installing premake5
  uses: Jarod42/install-premake5@v7
  with:
    msdev: 'vs2019'
    
- name: Checkout
  uses: actions/checkout@v6

- name: run premake5
  run: premake5 vs2022 --to=solution/vs2022

- name: Add msbuild to PATH
  uses: microsoft/setup-msbuild@v2

- name: build
  run: |
    cd solution/vs2022
    msbuild.exe /property:Configuration=Release MySolution.sln

Use latest premake version

steps:
- name: Installing premake5
  uses: Jarod42/install-premake5@v7
  with:
    ref: 'master'

Install premake5 is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install premake5
v7
Latest

Tags

 (1)

Install premake5 is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.