Skip to content

Commit

Permalink
Merge pull request #32 from Peefy/scoop-windows-support
Browse files Browse the repository at this point in the history
feat: Scoop windows support
  • Loading branch information
Peefy authored Feb 28, 2023
2 parents 031d674 + 4bbfb76 commit 4d6ce4f
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
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

0 comments on commit 4d6ce4f

Please sign in to comment.