Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upstream-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

## 许可

Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ words:
- endfor
- dotenv
- libtcc
- mklink
- nushell
- hustcer
- rsbuild
Expand All @@ -22,4 +23,5 @@ words:
- linewise
- deepseek
- Infinigence
- moonbitlang
ignorePaths:
2 changes: 1 addition & 1 deletion nu/moonbit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down