This GitHub Action will setup a MoonBit environment for you. It should work on Github macOS
, Ubuntu
, and Windows
runners.
It's quite simple to use hustcer/setup-moonbit
, just follow the example below:
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 example.
In rare circumstances you might get rate limiting errors, if this happens you can set the GITHUB_TOKEN
environment variable.
- uses: hustcer/setup-moonbit@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Name | Type | Description |
---|---|---|
version |
string |
Optional, A valid moonbit tool chain version, such as 0.1.20250210+7be093d1f , nightly , latest , etc. or even bleeding , default to latest |
setup-core |
bool |
Optional, Set to true to download and bundle Moonbit Core, false to ignore it, default to true |
core-version |
string |
Optional, A valid moonbit core version, such as 0.1.20250210+7be093d1f , nightly , latest , bleeding etc. Default to latest |
Licensed under:
- MIT license (LICENSE or http://opensource.org/licenses/MIT)
Setup MoonBit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.