Setup-Moonbit@Daily Checking #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# - Setup Moonbit with GitHub Actions | |
# REF: | |
# - https://github.com/marketplace/actions/checkout | |
name: Setup-Moonbit@Daily Checking | |
on: | |
# push: | |
# branches: | |
# - develop | |
# This schedule will run only from the default branch | |
schedule: | |
- cron: '15 0 * * *' # run at 00:15 AM UTC | |
jobs: | |
setup-moonbit: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-22.04, macos-latest] | |
runs-on: ${{ matrix.os }} | |
name: Setup MoonBit@${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Moonbit | |
uses: hustcer/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check Moonbit Version | |
run: | | |
moon version | |
moonc -v | |
moonrun --version | |
moon new hello && cd hello | |
moon run main | |
- name: Create an Issue for Release Failure | |
if: ${{ failure() }} | |
uses: JasonEtco/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
update_existing: true | |
search_existing: open | |
filename: .github/AUTO_ISSUE_TEMPLATE/daily-checking-fail.md |