-
Notifications
You must be signed in to change notification settings - Fork 35
129 lines (112 loc) · 3.68 KB
/
install-kcl.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: script-kcl
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
run: static/script/install.sh
- name: Check KCL run
shell: bash -leo pipefail {0}
run: sudo kcl ./static/stack/main.k
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/setup-go@v1
with:
go-version: "1.19"
- name: Check Python Installation
run: python3 -m pip install kclvm --user -U && python3 -m kclvm ./static/stack/main.k
- name: Check Go Installation
run: go install kcl-lang.io/kcl-go/cmds/kcl-go@main && sudo $HOME/go/bin/kcl-go run ./static/stack/main.k
check-linux:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script
run: static/script/install.sh
- name: Check KCL run
shell: bash -ieo pipefail {0}
run: |
kcl ./static/stack/main.k
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/setup-go@v1
with:
go-version: "1.19"
- name: Check Python Installation
run: python3 -m pip install kclvm --user -U && python3 -m kclvm ./static/stack/main.k
- name: Check Go Installation
run: go install kcl-lang.io/kcl-go/cmds/kcl-go@main && $HOME/go/bin/kcl-go run ./static/stack/main.k
check-windows:
strategy:
matrix:
goversion: ['1.19', '1.20']
pyversion: ['3.9', '3.10']
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Check Install Script
run: static/script/install.ps1
- name: Check KCL run
run: C:\kclvm\bin\kcl.exe ./static/stack/main.k
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.goversion }}
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyversion }}
- name: Check Python Installation
run: python3 -m pip install kclvm --user -U && python3 -m kclvm ./static/stack/main.k
- name: Check Go Installation
run: go install kcl-lang.io/kcl-go/cmds/kcl-go@main && C:\Users\runneradmin\go\bin\kcl-go.exe run ./static/stack/main.k
check-kcl-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
kcl.exe ./static/stack/main.k
check-kcl-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/kcl
echo "brew installed successfully"
kcl ./static/stack/main.k
kclvm_cli run ./static/stack/main.k
check-kcl-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
echo "brew installed successfully"
kcl ./static/stack/main.k