Skip to content

Merge pull request #323 from wilsonwang371/main #173

Merge pull request #323 from wilsonwang371/main

Merge pull request #323 from wilsonwang371/main #173

name: script-kcl-lsp
on:
push:
branches:
- main
jobs:
check-macos:
strategy:
matrix:
os: [macos-11, macos-12, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
run: static/script/install-kcl-lsp.sh
- 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: static/script/install-kcl-lsp.sh
- 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: static/script/install-kcl-lsp.ps1
- 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-11, macos-12, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Brew Installation
working-directory: .
run: |
brew install kcl-lang/tap/[email protected]
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/[email protected]
kcl-language-server version