Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

Setup MoonBit

v1.1

Setup MoonBit

code

Setup MoonBit

A github action to setup MoonBit environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup MoonBit

uses: hustcer/setup-moonbit@v1.1

Learn more about this action in hustcer/setup-moonbit

Choose a version

Setup MoonBit Action

中文说明

Setup-Moonbit@Dev

This GitHub Action will setup a MoonBit environment for you.

Usage

Basic

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

steps:
  - name: Checkout
    uses: actions/checkout@v4.1.0

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

  - name: Check Moonbit Version
    run: |
        moon version
        moonc -v
        moonrun --version
        moon new hello && cd hello
        moon run main

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.1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs

Currently no input required

License

Licensed under: