-
Notifications
You must be signed in to change notification settings - Fork 35
79 lines (73 loc) · 2.3 KB
/
install-kusion.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-kusion
on:
push:
branches:
- main
jobs:
check-kusion-script-install:
strategy:
matrix:
os: [macos-11, macos-12, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script
run: curl https://www.kusionstack.io/scripts/install.sh | sh
- name: Check Kusion run
shell: bash -leo pipefail {0}
run: |
sudo kusion version
sudo kusion compile -w static/stack -o stdout
cd static/stack && sudo kusion compile
- name: Uninstall Kusion
run: curl https://www.kusionstack.io/scripts/uninstall.sh | sh
check-kusion-brew-install:
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 KusionStack/tap/kusion
echo "brew installed successfully"
kusion version
kusion compile -w static/stack -o stdout
cd static/stack && kusion compile
brew uninstall KusionStack/tap/kusion
check-kusion-go-install:
strategy:
matrix:
os: [macos-11, macos-12, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/setup-go@v1
with:
go-version: "1.19"
- name: Check Go Installation
working-directory: .
run: |
go install kusionstack.io/kusion@latest
echo "go installed successfully"
$HOME/go/bin/kusion version
$HOME/go/bin/kusion compile -w static/stack -o stdout
cd static/stack && $HOME/go/bin/kusion compile
check-kusion-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 KusionStack https://github.com/KusionStack/scoop-bucket.git
scoop install KusionStack/kusion
mkdir C:\Users\runneradmin\go
kusion compile -w static/stack -o stdout