Ha.nnes.dev
setup-roc
🏗️
A GitHub Action to install Roc
2024-07-16
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
- ARM64
- x86-64
- MacOS
- ARM64 (Apple Silicon)
- x86-64
Other combinations of OS and architecture are not currently supported.
Inputs
roc-version
- The version of Roc to use, defaults tonightly
. Mutually exclusive with theroc-version-file
input.roc-version-file
- Path to a file containing the Roc version to use. Mutually exclusive with theroc-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.