From 56fd305509b4fa555b8886f75cda5e0ba56538cf Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Sat, 9 Nov 2024 08:33:58 +0800 Subject: [PATCH] feat: Add nightly test workflow (#25) --- .github/workflows/daily.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 2 +- README.zh-CN.md | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index eb01b4e..3161d56 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -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/create-an-issue@v2.9.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + update_existing: true + search_existing: open + filename: .github/AUTO_ISSUE_TEMPLATE/daily-checking-fail.md diff --git a/README.md b/README.md index 66fbfcb..3c82b87 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README.zh-CN.md b/README.zh-CN.md index 4b24f1c..d072e50 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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` | ## 许可