Skip to content

Commit 4bbfb76

Browse files
committed
feat: add windows scoop install on windows and scoop install tests.
1 parent 031d674 commit 4bbfb76

File tree

5 files changed

+46
-2
lines changed

5 files changed

+46
-2
lines changed

.github/workflows/script-kcl.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ jobs:
6565
- name: Check KCL run
6666
run: C:\kclvm\bin\kcl.exe hello.k && C:\kclvm\bin\kcl.exe hello.k --target native
6767

68+
- name: Check Scoop Install
69+
shell: powershell
70+
run: |
71+
iwr -useb get.scoop.sh -outfile 'install.ps1'
72+
.\install.ps1 -RunAsAdmin
73+
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
74+
scoop install kcl-lang/kclvm
75+
kcl.exe hello.k
76+
kcl.exe hello.k --target native
77+
6878
- name: Set up Go
6979
uses: actions/setup-go@v2
7080
with:
@@ -81,8 +91,6 @@ jobs:
8191
- name: Check Go Installation
8292
run: go install kusionstack.io/kclvm-go/cmds/kcl-go@main && C:\Users\runneradmin\go\bin\kcl-go.exe run hello.k
8393

84-
85-
8694
check-kcl-brew-install:
8795
strategy:
8896
matrix:

docs/user_docs/getting-started/install.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
5454
brew install kcl-lang/tap/kclvm
5555
```
5656

57+
### Scoop (Windows)
58+
59+
Install [Scoop](https://scoop.sh/) first, then add this bucket and install `kcl` by running:
60+
61+
```bash
62+
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
63+
scoop install kcl-lang/kclvm
64+
```
65+
5766
### From Python3
5867

5968
Install `kcl` through the `python3` and `pip` (`python3` requires 3.7.3+).

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
5454
brew install kcl-lang/tap/kclvm
5555
```
5656

57+
### Scoop (Windows)
58+
59+
首先安装 [Scoop](https://scoop.sh/), 然后通过如下命令安装 `kcl`:
60+
61+
```bash
62+
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
63+
scoop install kcl-lang/kclvm
64+
```
65+
5766
### 使用 Python3 安装
5867

5968
通过 `Python3``pip` 安装 `kcl` (Python3 要求 3.7.3+)

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/user_docs/getting-started/install.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
5454
brew install kcl-lang/tap/kclvm
5555
```
5656

57+
### Scoop (Windows)
58+
59+
首先安装 [Scoop](https://scoop.sh/), 然后通过如下命令安装 `kcl`:
60+
61+
```bash
62+
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
63+
scoop install kcl-lang/kclvm
64+
```
65+
5766
### 使用 Python3 安装
5867

5968
通过 `Python3``pip` 安装 `kcl` (Python3 要求 3.7.3+)

versioned_docs/version-0.4.5/user_docs/getting-started/install.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
5454
brew install kcl-lang/tap/kclvm
5555
```
5656

57+
### Scoop (Windows)
58+
59+
Install [Scoop](https://scoop.sh/) first, then add this bucket and install `kcl` by running:
60+
61+
```bash
62+
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
63+
scoop install kcl-lang/kclvm
64+
```
65+
5766
### From Python3
5867

5968
Install `kcl` through the `python3` and `pip` (`python3` requires 3.7.3+).

0 commit comments

Comments
 (0)