From 12f8c23ffb3ad0a66c43d844a44f3ea671e8e8b7 Mon Sep 17 00:00:00 2001 From: peefy Date: Fri, 11 Oct 2024 11:48:58 +0800 Subject: [PATCH] test: update script install CI test Signed-off-by: peefy --- .github/workflows/install-kcl-lsp.yml | 6 +++--- .github/workflows/install-kcl.yml | 17 +++++------------ .../user_docs/getting-started/install.md | 2 +- .../user_docs/getting-started/install.md | 2 +- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/install-kcl-lsp.yml b/.github/workflows/install-kcl-lsp.yml index b0ba9267..18e21ceb 100644 --- a/.github/workflows/install-kcl-lsp.yml +++ b/.github/workflows/install-kcl-lsp.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Check Install Script KCL Language Server - run: static/script/install-kcl-lsp.sh + run: curl -fsSL https://kcl-lang.io/script/install-kcl-lsp.sh | /bin/bash - name: Check run shell: bash -leo pipefail {0} run: sudo kcl-language-server version @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Check Install Script KCL Language Server - run: static/script/install-kcl-lsp.sh + run: wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | /bin/bash - name: Check run shell: bash -ieo pipefail {0} run: kcl-language-server version @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Check Install Script KCL Language Server - run: static/script/install-kcl-lsp.ps1 + run: powershell -Command "iwr -useb https://kcl-lang.io/script/install-kcl-lsp.ps1 | iex" - name: Check run run: C:\kclvm\bin\kcl-language-server.exe version diff --git a/.github/workflows/install-kcl.yml b/.github/workflows/install-kcl.yml index e4bb4226..a2e02def 100644 --- a/.github/workflows/install-kcl.yml +++ b/.github/workflows/install-kcl.yml @@ -11,11 +11,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - name: Check Install Script Core - run: static/script/install.sh - - name: Check Install Script CLI - run: static/script/install-cli.sh + run: curl -fsSL https://kcl-lang.io/script/install-cli.sh | /bin/bash - name: Check KCL run shell: bash -leo pipefail {0} run: sudo kcl version && sudo kcl run ./examples/configuration/nginx.k @@ -28,8 +25,7 @@ jobs: 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 - name: Check Uninstall Script CLI - run: static/script/uninstall-cli.sh - + run: curl -fsSL https://kcl-lang.io/script/uninstall-cli.sh | /bin/bash check-linux: strategy: @@ -38,11 +34,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - name: Check Install Script Core - run: static/script/install.sh - - name: Check Install Script CLI - run: static/script/install-cli.sh + run: wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash - name: Check KCL run shell: bash -ieo pipefail {0} run: | @@ -57,7 +50,7 @@ jobs: 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 - name: Check Uninstall Script CLI - run: static/script/uninstall-cli.sh + run: wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash check-windows: runs-on: windows-latest @@ -81,7 +74,7 @@ jobs: run: go install kcl-lang.io/cli/cmd/kcl@main && C:\Users\runneradmin\go\bin\kcl.exe run ./examples/configuration/nginx.k - name: Check Uninstall Script CLI - run: static/script/uninstall-cli.ps1 + run: powershell -Command "iwr -useb https://kcl-lang.io/script/uninstall-cli.ps1 | iex" check-kcl-scoop-install: runs-on: windows-latest diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md index 26e87166..01882f64 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md @@ -59,7 +59,7 @@ wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash 将 KCL windows 最新版本安装到 $Env:SystemDrive\kclvm\bin,并将该目录添加到用户 PATH 环境变量中。 ```bash -wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash +powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex" ``` 卸载 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.10/user_docs/getting-started/install.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.10/user_docs/getting-started/install.md index 26e87166..01882f64 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.10/user_docs/getting-started/install.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.10/user_docs/getting-started/install.md @@ -59,7 +59,7 @@ wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash 将 KCL windows 最新版本安装到 $Env:SystemDrive\kclvm\bin,并将该目录添加到用户 PATH 环境变量中。 ```bash -wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash +powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex" ``` 卸载