-
Notifications
You must be signed in to change notification settings - Fork 23
110 lines (108 loc) · 3.4 KB
/
nightly.yaml
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
name: Nightly build
run-name: |
${{ github.event_name == 'workflow_dispatch'
&& format(
'Nightly build (manual) use_network_cache:{0} clean_ya_dir:{1} upload_ya_dir:{2}, disk_type:{3}, build_target:{4} test_target:{5}',
inputs.use_network_cache, inputs.clean_ya_dir, inputs.upload_ya_dir, inputs.disk_type, inputs.build_target, inputs.test_target
)
|| format('Nightly build (schedule)')
}}
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
clean_ya_dir:
description: 'Clean ya dir'
type: choice
required: false
default: 'no'
options:
- 'yes'
- 'no'
upload_ya_dir:
description: 'Upload ya dir'
type: choice
required: false
default: 'no'
options:
- 'yes'
- 'no'
use_network_cache:
description: 'Use network cache'
type: choice
required: false
default: 'yes'
options:
- 'yes'
- 'no'
disk_type:
description: 'Disk type'
type: choice
required: false
default: 'network-ssd-nonreplicated'
options:
- 'network-ssd'
- 'network-ssd-nonreplicated'
build_target:
description: 'Build target'
type: string
required: false
#default: 'cloud/tasks/'
default: 'cloud/blockstore/apps/,cloud/filestore/apps/,cloud/disk_manager/,cloud/tasks/'
test_target:
description: 'Test target'
type: string
required: false
#default: 'cloud/tasks/'
default: 'cloud/blockstore/,cloud/filestore/,cloud/disk_manager/,cloud/tasks/'
nebius:
description: 'Run on new nebius runners'
type: choice
required: false
default: 'no'
options:
- 'yes'
- 'no'
test_threads:
description: 'Test threads count'
type: string
required: false
default: '32'
jobs:
build_dispatch:
name: Build/test x86_64 using YA (relwithdebinfo) (dispatch)
if: github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/build_and_test_on_demand.yaml
secrets: inherit
with:
build_target: ${{ inputs.build_target }}
test_target: ${{ inputs.test_target }}
build_preset: relwithdebinfo
cache_update_build: true
cache_update_tests: false
sleep_after_tests: 1
test_threads: ${{ inputs.test_threads }}
disk_type: ${{ inputs.disk_type }}
use_network_cache: ${{ inputs.use_network_cache }}
upload_ya_dir: ${{ inputs.upload_ya_dir }}
clean_ya_dir: ${{ inputs.clean_ya_dir }}
nebius: ${{ inputs.nebius }}
build_schedule:
name: Build/test x86_64 using YA (relwithdebinfo) (schedule)
if: github.event_name == 'schedule'
uses: ./.github/workflows/build_and_test_on_demand.yaml
secrets: inherit
with:
build_target: 'cloud/blockstore/apps/,cloud/filestore/apps/,cloud/disk_manager/,cloud/tasks/'
test_target: 'cloud/blockstore/,cloud/filestore/,cloud/disk_manager/,cloud/tasks/'
build_preset: relwithdebinfo
cache_update_build: true
cache_update_tests: false
sleep_after_tests: 1
test_threads: 32
disk_type: 'network-ssd-nonreplicated'
use_network_cache: "yes"
upload_ya_dir: "yes"
clean_ya_dir: "yes"
nebius: ${{ vars.GLOBAL_RUN_ON_NEBIUS }}