Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hustcer/setup-moonbit
A Github Action to setup a MoonBit environment for you.
https://github.com/hustcer/setup-moonbit
Last synced: 19 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 (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T04:08:41.000Z (20 days ago)
- Last Synced: 2024-06-10T04:48:04.456Z (20 days ago)
- Language: Nushell
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Lists
- awesome-nu - setup-mooonbit Action
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/[email protected]- name: Setup Moonbit
uses: hustcer/[email protected]- name: Check Moonbit Version
run: |
moon version
moonc -v
moonrun --version
moon new hello && cd hello
moon run main
```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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```### Inputs
Currently no input required
## License
Licensed under:
- MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT)