-
Notifications
You must be signed in to change notification settings - Fork 35
79 lines (72 loc) · 2.31 KB
/
install-kcl-lsp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: script-kcl-lsp
on:
push:
branches:
- main
jobs:
check-macos:
strategy:
matrix:
os: [macos-12, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
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
check-linux:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
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
check-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
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
check-kcl-lsp-scoop-install:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- 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/kcl-lsp
kcl-language-server.exe version
check-kcl-lsp-brew-install-macos:
strategy:
matrix:
os: [macos-12, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Brew Installation
working-directory: .
run: |
brew install kcl-lang/tap/kcl-lsp
kcl-language-server version
check-kcl-lsp-brew-install-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Homebrew/actions/setup-homebrew@master
- name: Check Brew Installation
working-directory: .
run: |
brew install kcl-lang/tap/kcl-lsp
kcl-language-server version