Skip to content

Commit

Permalink
feat: Add nightly test workflow (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer authored Nov 9, 2024
1 parent ef9cbae commit 56fd305
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,36 @@ jobs:
update_existing: true
search_existing: open
filename: .github/AUTO_ISSUE_TEMPLATE/daily-checking-fail.md

setup-nightly:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}
name: Setup Nightly@${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Moonbit
uses: hustcer/setup-moonbit@v1
with:
version: nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check Moonbit Version
run: |
moon version --all
- 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ In rare circumstances you might get rate limiting errors, if this happens you ca

| Name | Required | Description | Type | Default |
| ------------ | -------- | ------------ | ------ | --------- |
| `version` | no | A valid moonbit tool chain version, such as `0.1.20241104+8ce5d2967` , etc. or `bleeding` (currently for macOS only) | string | `latest`|
| `version` | no | A valid moonbit tool chain version, such as `0.1.20241104+8ce5d2967`, `nightly` , etc. or `bleeding` (currently for macOS only) | string | `latest`|
| `setup-core` | no | `true` to download and bundle Moonbit Core, `false` to ignore it | bool | `true` |

## License
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ steps:

| 参数名 | 必填 | 描述 | 类型 | 默认值 |
| ---------------- | -------- | --- | ------ | --------- |
| `version` | 否 | 合法的 Moonbit 工具链版本,比如: `0.1.20241104+8ce5d2967` 或者 `bleeding` (只支持 macOS) | string | `latest` |
| `version` | 否 | 合法的 Moonbit 工具链版本,比如: `0.1.20241104+8ce5d2967`, `nightly` 或者 `bleeding` (只支持 macOS) | string | `latest` |
| `setup-core` | 否 | 设置为 `true` 则下载并打包 Moonbit Core, `false` 则忽略 | bool | `true` |

## 许可
Expand Down

0 comments on commit 56fd305

Please sign in to comment.