Skip to content

Commit 12f8c23

Browse files
committed
test: update script install CI test
Signed-off-by: peefy <[email protected]>
1 parent 43d6254 commit 12f8c23

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

.github/workflows/install-kcl-lsp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Check Install Script KCL Language Server
15-
run: static/script/install-kcl-lsp.sh
15+
run: curl -fsSL https://kcl-lang.io/script/install-kcl-lsp.sh | /bin/bash
1616
- name: Check run
1717
shell: bash -leo pipefail {0}
1818
run: sudo kcl-language-server version
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v3
2727
- name: Check Install Script KCL Language Server
28-
run: static/script/install-kcl-lsp.sh
28+
run: wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | /bin/bash
2929
- name: Check run
3030
shell: bash -ieo pipefail {0}
3131
run: kcl-language-server version
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v3
3737
- name: Check Install Script KCL Language Server
38-
run: static/script/install-kcl-lsp.ps1
38+
run: powershell -Command "iwr -useb https://kcl-lang.io/script/install-kcl-lsp.ps1 | iex"
3939
- name: Check run
4040
run: C:\kclvm\bin\kcl-language-server.exe version
4141

.github/workflows/install-kcl.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- uses: actions/checkout@v3
14-
- name: Check Install Script Core
15-
run: static/script/install.sh
16-
1714
- name: Check Install Script CLI
18-
run: static/script/install-cli.sh
15+
run: curl -fsSL https://kcl-lang.io/script/install-cli.sh | /bin/bash
1916
- name: Check KCL run
2017
shell: bash -leo pipefail {0}
2118
run: sudo kcl version && sudo kcl run ./examples/configuration/nginx.k
@@ -28,8 +25,7 @@ jobs:
2825
run: go install kcl-lang.io/cli/cmd/kcl@main && sudo $HOME/go/bin/kcl version && sudo $HOME/go/bin/kcl run ./examples/configuration/nginx.k
2926

3027
- name: Check Uninstall Script CLI
31-
run: static/script/uninstall-cli.sh
32-
28+
run: curl -fsSL https://kcl-lang.io/script/uninstall-cli.sh | /bin/bash
3329

3430
check-linux:
3531
strategy:
@@ -38,11 +34,8 @@ jobs:
3834
runs-on: ${{ matrix.os }}
3935
steps:
4036
- uses: actions/checkout@v3
41-
- name: Check Install Script Core
42-
run: static/script/install.sh
43-
4437
- name: Check Install Script CLI
45-
run: static/script/install-cli.sh
38+
run: wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash
4639
- name: Check KCL run
4740
shell: bash -ieo pipefail {0}
4841
run: |
@@ -57,7 +50,7 @@ jobs:
5750
run: go install kcl-lang.io/cli/cmd/kcl@main && sudo $HOME/go/bin/kcl version && sudo $HOME/go/bin/kcl run ./examples/configuration/nginx.k
5851

5952
- name: Check Uninstall Script CLI
60-
run: static/script/uninstall-cli.sh
53+
run: wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
6154

6255
check-windows:
6356
runs-on: windows-latest
@@ -81,7 +74,7 @@ jobs:
8174
run: go install kcl-lang.io/cli/cmd/kcl@main && C:\Users\runneradmin\go\bin\kcl.exe run ./examples/configuration/nginx.k
8275

8376
- name: Check Uninstall Script CLI
84-
run: static/script/uninstall-cli.ps1
77+
run: powershell -Command "iwr -useb https://kcl-lang.io/script/uninstall-cli.ps1 | iex"
8578

8679
check-kcl-scoop-install:
8780
runs-on: windows-latest

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
5959
将 KCL windows 最新版本安装到 $Env:SystemDrive\kclvm\bin,并将该目录添加到用户 PATH 环境变量中。
6060

6161
```bash
62-
wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
62+
powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex"
6363
```
6464

6565
卸载

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
5959
将 KCL windows 最新版本安装到 $Env:SystemDrive\kclvm\bin,并将该目录添加到用户 PATH 环境变量中。
6060

6161
```bash
62-
wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
62+
powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex"
6363
```
6464

6565
卸载

0 commit comments

Comments
 (0)