-
Notifications
You must be signed in to change notification settings - Fork 30
73 lines (73 loc) · 2.26 KB
/
install.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
# todo: Should check the installation is correct or not! Do it in the kusion repo.
name: installation check
on:
push:
branches:
- main
paths:
- 'static/scripts/**'
pull_request:
branches:
- 'main'
paths:
- 'static/scripts/**'
jobs:
check-scripts-on-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: check install script
run: static/scripts/install.sh
#- name: check kusion run
# run: sudo kusion compile -w static/stack -o stdout
# shell: bash -leo pipefail {0}
check-brew-on-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: brew install kusion
run: brew install KusionStack/tap/kusion
#- name: check kusion run
# run: kusion compile -w static/stack -o stdout
# shell: bash -leo pipefail {0}
check-scripts-on-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: check install script
run: static/scripts/install.sh
#- name: check kusion run
# run: kusion compile -w static/stack -o stdout
# shell: bash -ieo pipefail {0}
check-brew-on-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Homebrew/actions/setup-homebrew@master
- name: brew install kusion
run: brew install KusionStack/tap/kusion
shell: bash -ieo pipefail {0}
#- name: check kusion run
# run: kusion compile -w static/stack -o stdout
# shell: bash -ieo pipefail {0}
check-powershell-on-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: check install script
run: static/scripts/install.ps1
shell: powershell
#- name: check kusion run
# run: C:\kusion\kusion.exe compile -w static/stack -o stdout
# shell: powershell
check-scoop-on-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: scoop install kusion
run: |
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
scoop bucket add KusionStack https://github.com/KusionStack/scoop-bucket.git
scoop install KusionStack/kusion
# kusion compile -w static/stack -o stdout
shell: powershell