Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hustcer/setup-moonbit

A Github Action to setup a MoonBit environment for you.
https://github.com/hustcer/setup-moonbit

Last synced: about 1 month ago
JSON representation

A Github Action to setup a MoonBit environment for you.

Awesome Lists containing this project

README

        

# Setup MoonBit Action

[中文说明](README.zh-CN.md)

[![Setup-Moonbit@Dev](https://github.com/hustcer/setup-moonbit/actions/workflows/basic.yml/badge.svg)](https://github.com/hustcer/setup-moonbit/actions/workflows/basic.yml)

This GitHub Action will setup a [MoonBit](https://www.moonbitlang.com/) environment for you. It should work on Github `macos` , `ubuntu` , and `Windows` runners.

## Usage

### Basic

It's quite simple to use `hustcer/setup-moonbit` , just follow the example below:

```yaml
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Moonbit
uses: hustcer/setup-moonbit@v1

- name: Check Moonbit Version
run: |
moon version --all
```

Or, check the [test.yaml](https://github.com/hustcer/setup-moonbit/blob/main/.github/workflows/test.yml) example.

In rare circumstances you might get rate limiting errors, if this happens you can set the `GITHUB_TOKEN` environment variable.

```yaml
- uses: hustcer/setup-moonbit@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

### Inputs

| Name | Required | Description | Type | Default |
| ------------ | -------- | ------------ | ------ | --------- |
| `version` | no | A valid moonbit tool chain version, such as `0.1.20240910+3af041b9a` , etc. or `bleeding` (currently for macOS only) | string | `latest`|
| `setup-core` | no | `true` to download and bundle Moonbit Core, `false` to ignore it | bool | `true` |

## License

Licensed under:

* MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT)