forked from databendlabs/databend
-
Notifications
You must be signed in to change notification settings - Fork 0
199 lines (181 loc) · 5.05 KB
/
production.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
name: Production
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
- "scripts/setup/**"
- ".devcontainer/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
BUILD_PROFILE: release
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# fetch all tags, metasrv and metaclient need tag as its version.
fetch-depth: 0
- uses: ./.github/actions/check
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_macos:
runs-on: macos-11
strategy:
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v3
with:
# fetch all tags, metasrv and metaclient need tag as its version.
fetch-depth: 0
- uses: ./.github/actions/build_macos
with:
target: ${{ matrix.target }}
build_linux:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
with:
# fetch all tags, metasrv and metaclient need tag as its version.
fetch-depth: 0
- uses: ./.github/actions/build_linux
with:
target: ${{ matrix.target }}
build_hive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/build_linux
with:
target: x86_64-unknown-linux-gnu
artifacts: meta,query
features: hive
test_unit:
runs-on: [self-hosted, X64, Linux, 8c16g]
env:
RUNNER_PROVIDER: aws
steps:
- uses: actions/checkout@v3
with:
# fetch all tags, metasrv and metaclient need tag as its version.
fetch-depth: 0
- uses: ./.github/actions/test_unit
timeout-minutes: 30
test_stateless_standalone_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateless_standalone_linux
timeout-minutes: 30
# test_stateless_standalone_macos:
# runs-on: macos-11
# needs: build_macos
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/test_stateless_standalone_macos
test_stateless_cluster_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateless_cluster_linux
timeout-minutes: 30
test_stateless_cluster_macos:
runs-on: macos-11
needs: build_macos
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateless_cluster_macos
timeout-minutes: 30
test_stateful_standalone_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateful_standalone_linux
timeout-minutes: 20
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux
test_stateful_cluster_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateful_cluster_linux
timeout-minutes: 20
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-cluster-linux
test_sqllogic_standalone_macos:
runs-on: macos-11
needs: build_macos
strategy:
matrix:
dirs:
- "base"
- "ydb"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_sqllogic_standalone_macos
timeout-minutes: 20
with:
dirs: ${{ matrix.dirs }}
test_sqllogic_standalone_linux:
runs-on: ubuntu-latest
needs: build_linux
name: test_sqllogic_${{ matrix.handlers }}_${{ matrix.dirs }}_standalone_linux
strategy:
matrix:
dirs:
- "base"
- "query"
- "ydb"
- "standalone"
- "crdb"
- "duckdb"
handlers:
- "mysql"
- "http"
- "clickhouse"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_sqllogic_standalone_linux
timeout-minutes: 20
with:
dirs: ${{ matrix.dirs }}
handlers: ${{ matrix.handlers }}
test_ee_standalone:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_ee_standalone_linux
timeout-minutes: 20
env:
DATABEND_ENTERPRISE_LICENSE: ${{ secrets.DATABEND_ENTERPRISE_LICENSE }}
SKIP_EE_TESTS: false
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux