Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Hasnep/setup-roc
🏗️ A GitHub Action to install Roc
https://github.com/Hasnep/setup-roc
github-actions roc-lang
Last synced: 3 months ago
JSON representation
🏗️ A GitHub Action to install Roc
- Host: GitHub
- URL: https://github.com/Hasnep/setup-roc
- Owner: Hasnep
- License: mit
- Created: 2023-03-03T03:38:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-14T05:53:33.000Z (over 1 year ago)
- Last Synced: 2024-02-11T15:12:13.935Z (9 months ago)
- Topics: github-actions, roc-lang
- Language: TypeScript
- Homepage:
- Size: 204 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- roc-awesome - Hasnep/setup-roc
README
# 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`.
```yaml
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-64Other combinations of OS and architecture 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](./LICENCE) and is based on the [actions/setup-python](https://github.com/actions/setup-python) repository which is also released under the [MIT licence](./LICENCE-actions-setup-python).