Skip to content

feat: Scoop windows support #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2023
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
12 changes: 10 additions & 2 deletions .github/workflows/script-kcl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ jobs:
- name: Check KCL run
run: C:\kclvm\bin\kcl.exe hello.k && C:\kclvm\bin\kcl.exe hello.k --target native

- name: Check Scoop Install
shell: powershell
run: |
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kclvm
kcl.exe hello.k
kcl.exe hello.k --target native

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -81,8 +91,6 @@ jobs:
- name: Check Go Installation
run: go install kusionstack.io/kclvm-go/cmds/kcl-go@main && C:\Users\runneradmin\go\bin\kcl-go.exe run hello.k



check-kcl-brew-install:
strategy:
matrix:
Expand Down
9 changes: 9 additions & 0 deletions docs/user_docs/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
brew install kcl-lang/tap/kclvm
```

### Scoop (Windows)

Install [Scoop](https://scoop.sh/) first, then add this bucket and install `kcl` by running:

```bash
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kclvm
```

### From Python3

Install `kcl` through the `python3` and `pip` (`python3` requires 3.7.3+).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
brew install kcl-lang/tap/kclvm
```

### Scoop (Windows)

首先安装 [Scoop](https://scoop.sh/), 然后通过如下命令安装 `kcl`:

```bash
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kclvm
```

### 使用 Python3 安装

通过 `Python3` 和 `pip` 安装 `kcl` (Python3 要求 3.7.3+)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
brew install kcl-lang/tap/kclvm
```

### Scoop (Windows)

首先安装 [Scoop](https://scoop.sh/), 然后通过如下命令安装 `kcl`:

```bash
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kclvm
```

### 使用 Python3 安装

通过 `Python3` 和 `pip` 安装 `kcl` (Python3 要求 3.7.3+)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex"
brew install kcl-lang/tap/kclvm
```

### Scoop (Windows)

Install [Scoop](https://scoop.sh/) first, then add this bucket and install `kcl` by running:

```bash
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kclvm
```

### From Python3

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