https://github.com/hustcer/setup-moonbit
A Github Action to setup a MoonBit environment for you.
https://github.com/hustcer/setup-moonbit
Last synced: 24 days ago
JSON representation
A Github Action to setup a MoonBit environment for you.
- Host: GitHub
- URL: https://github.com/hustcer/setup-moonbit
- Owner: hustcer
- License: mit
- Created: 2023-11-01T15:04:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T14:46:01.000Z (about 1 year ago)
- Last Synced: 2025-03-05T15:34:35.109Z (about 1 year ago)
- Language: Nushell
- Homepage:
- Size: 89.8 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - setup-moonbit Action
- awesome-moonbit - Github Action: `hustcer/setup-moonbit`
README
# Setup MoonBit Action
[中文说明](README.zh-CN.md)
[](https://github.com/hustcer/setup-moonbit/actions/workflows/basic.yml)
[](https://github.com/hustcer/setup-moonbit/actions/workflows/daily.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
**NOTE**: It's recommended to use `hustcer/setup-moonbit@v1.16` or `hustcer/setup-moonbit@v1`. The `v1` tag will always point to the latest `1.x` version.
### Basic
It's quite simple to use `hustcer/setup-moonbit` , just follow the example below:
```yaml
steps:
- 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 | Type | Description |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `version` | `string` | Optional, A valid moonbit tool chain version, such as `0.8.1+bd827dc85`, `latest`, `pre-release`, or `nightly`. Defaults to `latest` or the value of `MOONBIT_INSTALL_VERSION` environment variable |
| `setup-core` | `bool` | Optional, Set to `true` to download and bundle Moonbit Core, `false` to skip it. Defaults to `true` |
| `core-version` | `string` | Optional, A valid moonbit core version, such as `0.8.1+bd827dc85`, `latest`, `pre-release`, or `nightly`. Defaults to `latest` |
## License
Licensed under:
- MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT)