Skip to content

Hasnep/setup-roc

Repository files navigation

setup-roc

A GitHub Action to install Roc. Currently, only installs the latest nightly version.

Usage

Add a step that uses hasnep/setup-roc to a GitHub actions workflow file to install Roc and add the binary to the PATH.

steps:
  - name: Install Roc
    uses: hasnep/setup-roc@main
    with:
      roc-version: nightly
  - name: Check the Roc version
    run: roc --version

The action is designed to work on

  • Linux
    • x86-64
  • MacOS
    • Apple Silicon (ARM64)
    • x86-64

Other combinations of platform and processor are not currently supported.

Inputs

  • roc-version - The version of Roc to use, defaults to nightly. Mutually exclusive with the roc-version-file input.
  • roc-version-file - Path to a file containing the Roc version to use. Mutually exclusive with the roc-version input.
  • token - GitHub token to use when accessing the GitHub API. Defaults to the automatically generated GitHub token.

Outputs

  • roc-version - The installed Roc version.
  • roc-path - The absolute path to the Roc executable.

Licence

This repository is released under the MIT licence and is based on the actions/setup-python repository which is also released under the MIT licence.