From e37fc234cb0c6ef5e04246f0725662d786db852a Mon Sep 17 00:00:00 2001 From: hustcer Date: Tue, 20 Jan 2026 22:48:03 +0800 Subject: [PATCH 1/2] chore: Update Nushell to 0.110.0 --- .github/workflows/upstream-check.yml | 2 +- action.yaml | 2 +- cspell.yml | 2 ++ nu/moonbit.nu | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upstream-check.yml b/.github/workflows/upstream-check.yml index d594c24..727004f 100644 --- a/.github/workflows/upstream-check.yml +++ b/.github/workflows/upstream-check.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Nushell uses: hustcer/setup-nu@v3 with: - version: 0.109.1 + version: 0.110.0 - name: Create PR if Upstream was Updated shell: nu {0} diff --git a/action.yaml b/action.yaml index 535e178..4847fe8 100644 --- a/action.yaml +++ b/action.yaml @@ -34,7 +34,7 @@ runs: - name: Setup Nu uses: hustcer/setup-nu@v3.22 with: - version: 0.109.1 + version: 0.110.0 - name: Setup MoonBit shell: nu {0} diff --git a/cspell.yml b/cspell.yml index 80e1be5..6dd521b 100644 --- a/cspell.yml +++ b/cspell.yml @@ -12,6 +12,7 @@ words: - endfor - dotenv - libtcc +- mklink - nushell - hustcer - rsbuild @@ -22,4 +23,5 @@ words: - linewise - deepseek - Infinigence +- moonbitlang ignorePaths: diff --git a/nu/moonbit.nu b/nu/moonbit.nu index 43690ac..0502030 100644 --- a/nu/moonbit.nu +++ b/nu/moonbit.nu @@ -70,7 +70,7 @@ export def 'setup moonbit' [ if ($version not-in $VALID_VERSION_TAG) and not (is-semver $version) { print $'(ansi r)Invalid version: ($version)(ansi reset)'; exit 2 } - let MOONBIT_HOME = $env.MOONBIT_HOME? | default ([($nu.home-path? | default $nu.home-dir?) .moon] | path join) + let MOONBIT_HOME = $env.MOONBIT_HOME? | default ([$nu.home-dir .moon] | path join) let MOONBIT_BIN_DIR = [$MOONBIT_HOME bin] | path join let MOONBIT_LIB_DIR = [$MOONBIT_HOME lib] | path join let coreDir = $'($MOONBIT_LIB_DIR)/core' From 25a517fea70e8013c5fa221f328870e2662b8aee Mon Sep 17 00:00:00 2001 From: hustcer Date: Tue, 20 Jan 2026 22:51:06 +0800 Subject: [PATCH 2/2] chore: Update version --- .github/workflows/basic.yml | 2 +- README.md | 4 ++-- README.zh-CN.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 7e433e6..a331058 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -48,7 +48,7 @@ jobs: uses: hustcer/setup-moonbit@develop with: setup-core: false - version: 0.6.33+b989ba000 + version: 0.7.1+c0b22a8b0 - name: Check Moonbit Version run: | diff --git a/README.md b/README.md index 1ee9fd3..783bd3a 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ In rare circumstances you might get rate limiting errors, if this happens you ca | Name | Type | Description | | ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `version` | `string` | Optional, A valid moonbit tool chain version, such as `0.6.33+b989ba000`, `latest`, `pre-release`, or `nightly`. Defaults to `latest` or the value of `MOONBIT_INSTALL_VERSION` environment variable | +| `version` | `string` | Optional, A valid moonbit tool chain version, such as `0.7.1+c0b22a8b0`, `latest`, `pre-release`, or `nightly`. Defaults to `latest` or the value of `MOONBIT_INSTALL_VERSION` environment variable | | `setup-core` | `bool` | Optional, Set to `true` to download and bundle Moonbit Core, `false` to skip it. Defaults to `true` | -| `core-version` | `string` | Optional, A valid moonbit core version, such as `0.6.33+b989ba000`, `latest`, `pre-release`, or `nightly`. Defaults to `latest` | +| `core-version` | `string` | Optional, A valid moonbit core version, such as `0.7.1+c0b22a8b0`, `latest`, `pre-release`, or `nightly`. Defaults to `latest` | ## License diff --git a/README.zh-CN.md b/README.zh-CN.md index 65ea77a..bd3a607 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -36,9 +36,9 @@ steps: | 参数名 | 类型 | 描述 | | ------------ | -------- | --------------------------------------------------------------------------------------------------------------------- | -| `version` | `string` | 可选,合法的 Moonbit 工具链版本,比如:`0.6.33+b989ba000`、`latest`、`pre-release` 或者 `nightly`。默认为 `latest` 或环境变量 `MOONBIT_INSTALL_VERSION` 的值 | +| `version` | `string` | 可选,合法的 Moonbit 工具链版本,比如:`0.7.1+c0b22a8b0`、`latest`、`pre-release` 或者 `nightly`。默认为 `latest` 或环境变量 `MOONBIT_INSTALL_VERSION` 的值 | | `setup-core` | `bool` | 可选,设置为 `true` 则下载并打包 Moonbit Core,`false` 则跳过。默认为 `true` | -| `core-version` | `string` | 可选,合法的 Moonbit Core 版本,比如:`0.6.33+b989ba000`、`latest`、`pre-release` 或者 `nightly`。默认为 `latest` | +| `core-version` | `string` | 可选,合法的 Moonbit Core 版本,比如:`0.7.1+c0b22a8b0`、`latest`、`pre-release` 或者 `nightly`。默认为 `latest` | ## 许可