-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
65 lines (58 loc) · 1.48 KB
/
Tiltfile
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
load('ext://uibutton', 'cmd_button', 'text_input', 'choice_input')
#### Setup ####
local('''
if [ ! -d build ]; then
meson setup build
fi
''')
#### Development ####
local_resource(
'test',
cmd='meson test -C build || cat build/meson-logs/testlog.txt',
deps=['meson.build', 'src/'],
labels=['development']
)
cmd_button(
'test:open-logs',
resource='test',
text='Open logs',
argv=['bash', '-c', '$GUI_EDITOR build/meson-logs/testlog.txt'],
inputs=[text_input('GUI_EDITOR', 'Editor', default='code')]
)
local_resource(
'compile examples',
cmd='meson compile examples -C build',
deps=['meson.build', 'examples/'],
labels=['development'],
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL
)
#### Manual Actions ####
local_resource(
'[DevOps]',
cmd='echo "Please use the buttons provided to perform different operations."',
labels=['zzz_manual'],
)
cmd_button(
'devops:gen-libsodium-di',
resource='[DevOps]',
text='Generate libsodium .di file',
argv=['bash', 'devops/scripts/gen-libsodium-di.bash']
)
cmd_button(
'devops:test-github-action',
resource='[DevOps]',
text='Test GitHub Action',
argv=[
'bash',
'-c',
'act -W $WORKFLOW_FILE --artifact-server-path /tmp/ --detect-event; echo "Exit code: $?"'
],
inputs=[
choice_input(
'WORKFLOW_FILE',
'Workflow file',
choices=listdir('.github/workflows/')
)
]
)