Skip to content

Commit 99e5e7f

Browse files
authored
fix: fix cicd (#4028)
1 parent a1db84f commit 99e5e7f

23 files changed

+131
-118
lines changed

.github/workflows/cicd.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
CTEST_PARALLEL_LEVEL: 1 # parallel test level for ctest (make test)
4949
steps:
5050
- uses: actions/checkout@v4
51-
51+
with:
52+
submodules: recursive
5253
- name: prepare release
5354
run: |
5455
VERSION="snapshot"
@@ -78,8 +79,8 @@ jobs:
7879
7980
- name: run cpp
8081
id: unittest
81-
run: |
8282
shell: bash
83+
run: |
8384
make test
8485
8586
- name: run sql_router_test
@@ -108,7 +109,7 @@ jobs:
108109
109110
- name: upload unit test results
110111
if: always()
111-
uses: actions/upload-artifact@v3
112+
uses: actions/upload-artifact@v4
112113
with:
113114
name: linux-ut-result-cpp-${{ github.sha }}
114115
# exclude _deps xml
@@ -130,7 +131,7 @@ jobs:
130131
131132
- name: upload artifacts
132133
if: ${{ github.event_name == 'push' }}
133-
uses: actions/upload-artifact@v3
134+
uses: actions/upload-artifact@v4
134135
with:
135136
path: openmldb-*.tar.gz
136137
name: release-artifacts
@@ -151,7 +152,7 @@ jobs:
151152
comment_title: Linux Test Report
152153

153154
macos-cpp:
154-
runs-on: macos-12
155+
runs-on: macos-13
155156
if: github.repository == '4paradigm/OpenMLDB'
156157
env:
157158
OS: darwin
@@ -165,7 +166,7 @@ jobs:
165166
- name: Xcode Select Version
166167
uses: maxim-lobanov/setup-xcode@v1
167168
with:
168-
xcode-version: '14.0.1'
169+
xcode-version: '14.1.0'
169170

170171
- name: prepare release
171172
run: |
@@ -210,14 +211,14 @@ jobs:
210211
211212
- name: upload artifacts
212213
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
213-
uses: actions/upload-artifact@v3
214+
uses: actions/upload-artifact@v4
214215
with:
215216
path: openmldb-*.tar.gz
216217
name: release-artifacts
217218

218219
- name: Upload Event File
219220
if: always()
220-
uses: actions/upload-artifact@v3
221+
uses: actions/upload-artifact@v4
221222
with:
222223
name: event-file
223224
path: ${{ github.event_path }}
@@ -230,7 +231,7 @@ jobs:
230231
success() && startsWith(github.ref, 'refs/tags/v')
231232
steps:
232233
- name: Download Release Artifacts
233-
uses: actions/download-artifact@v3
234+
uses: actions/download-artifact@v4
234235
with:
235236
name: release-artifacts
236237

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
df -h
8181
8282
- name: upload coverage
83-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
8484
with:
8585
# include the generated html report in build/coverage, great for local diagnose
8686
name: coverage-cpp-${{ github.sha }}
@@ -98,7 +98,7 @@ jobs:
9898
submodules: true
9999

100100
- name: Download Artifacts
101-
uses: actions/download-artifact@v3
101+
uses: actions/download-artifact@v4
102102
with:
103103
name: coverage-cpp-${{ github.sha }}
104104
path: build

.github/workflows/hybridse-ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3333
TESTING_ENABLE_STRIP: ON
3434
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
35-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3635
steps:
37-
- uses: actions/checkout@v2
38-
36+
- uses: actions/checkout@v4
37+
with:
38+
submodules: recursive
3939
- name: Build HybridSE
4040
run: |
4141
make hybridse-build
@@ -46,23 +46,28 @@ jobs:
4646
4747
- name: Upload Cpp UT Results
4848
if: always()
49-
uses: actions/upload-artifact@v3
49+
uses: actions/upload-artifact@v4
5050
with:
5151
name: linux-ut-result-cpp-${{ github.sha }}
5252
path: |
5353
build/hybridse/**/*.xml
5454
5555
macos-build:
5656
name: Build in MacOS
57-
runs-on: macos-latest
57+
runs-on: macos-13
5858
env:
5959
NPROC: 3
6060
CTEST_PARALLEL_LEVEL: 3 # parallel test level for ctest (make test)
6161
# this option enables print inner output rows of each node in runner
6262
HYBRIDSE_DEBUG: true
6363
steps:
6464
- uses: actions/checkout@v4
65-
65+
with:
66+
submodules: recursive
67+
- name: Xcode Select Version
68+
uses: maxim-lobanov/setup-xcode@v1
69+
with:
70+
xcode-version: '14.1.0'
6671
- name: Install dependencies
6772
run: |
6873
brew install coreutils
@@ -85,14 +90,14 @@ jobs:
8590
8691
- name: Upload Event File
8792
if: always()
88-
uses: actions/upload-artifact@v3
93+
uses: actions/upload-artifact@v4
8994
with:
9095
name: event-file
9196
path: ${{ github.event_path }}
9297

9398
- name: Upload Cpp UT Results
9499
if: always()
95-
uses: actions/upload-artifact@v3
100+
uses: actions/upload-artifact@v4
96101
with:
97102
name: macos-ut-result-cpp-${{ github.sha }}
98103
path: |

.github/workflows/integration-test-pkg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "0"
210210
- name: upload test results
211211
if: always()
212-
uses: actions/upload-artifact@v3
212+
uses: actions/upload-artifact@v4
213213
with:
214214
name: python-sdk-standalone-0-pkg-${{ github.sha }}
215215
path: |
@@ -248,7 +248,7 @@ jobs:
248248
run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "1,2,3,4,5"
249249
- name: upload test results
250250
if: always()
251-
uses: actions/upload-artifact@v3
251+
uses: actions/upload-artifact@v4
252252
with:
253253
name: python-sdk-standalone-1-pkg-${{ github.sha }}
254254
path: |

.github/workflows/integration-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
make install SQL_JAVASDK_ENABLE=ON CMAKE_INSTALL_PREFIX=openmldb
4141
- name: install openmldb
4242
run: |
43+
apt update
4344
apt install -y rsync
4445
bash test/integration-test/openmldb-test-python/install.sh
4546
- name: run test

.github/workflows/openmldb-tool.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
5151
- name: upload python test results
5252
if: always()
53-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: openmldb-tool-test-result-${{ github.sha }}
5656
path: |
@@ -87,7 +87,7 @@ jobs:
8787
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
8888
- name: upload python test results
8989
if: always()
90-
uses: actions/upload-artifact@v3
90+
uses: actions/upload-artifact@v4
9191
with:
9292
name: openmldb-tool-test-result-${{ github.sha }}
9393
path: |

.github/workflows/other-os-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,21 @@ jobs:
138138
df -h
139139
140140
- name: upload binary
141-
uses: actions/upload-artifact@v3
141+
uses: actions/upload-artifact@v4
142142
with:
143143
path: build/bin/openmldb
144144
name: binary
145145

146146
- name: upload java native
147147
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
148-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
149149
with:
150150
name: native-jar
151151
path: java/openmldb-native/target/openmldb-native-*.jar
152152

153153
- name: upload python whl
154154
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
155-
uses: actions/upload-artifact@v3
155+
uses: actions/upload-artifact@v4
156156
with:
157157
name: python-whl
158158
path: |
@@ -206,21 +206,21 @@ jobs:
206206
tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/
207207
208208
- name: upload binary
209-
uses: actions/upload-artifact@v3
209+
uses: actions/upload-artifact@v4
210210
with:
211211
path: openmldb-*.tar.gz
212212
name: binary-package
213213

214214
- name: upload java native
215215
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
216-
uses: actions/upload-artifact@v3
216+
uses: actions/upload-artifact@v4
217217
with:
218218
name: native-jar
219219
path: java/openmldb-native/target/openmldb-native-*.jar
220220

221221
- name: upload python whl
222222
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
223-
uses: actions/upload-artifact@v3
223+
uses: actions/upload-artifact@v4
224224
with:
225225
name: python-whl
226226
path: |
@@ -276,21 +276,21 @@ jobs:
276276
tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/
277277
278278
- name: upload binary
279-
uses: actions/upload-artifact@v3
279+
uses: actions/upload-artifact@v4
280280
with:
281281
path: openmldb-*.tar.gz
282282
name: binary-package
283283

284284
- name: upload java native
285285
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
286-
uses: actions/upload-artifact@v3
286+
uses: actions/upload-artifact@v4
287287
with:
288288
name: native-jar
289289
path: java/openmldb-native/target/openmldb-native-*.jar
290290

291291
- name: upload python whl
292292
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
293-
uses: actions/upload-artifact@v3
293+
uses: actions/upload-artifact@v4
294294
with:
295295
name: python-whl
296296
path: |

.github/workflows/publish-test-results-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Download Artifacts
23-
uses: actions/download-artifact@v3
23+
uses: actions/download-artifact@v4
2424

2525
- name: Publish Linux UT Results
2626
uses: EnricoMi/publish-unit-test-result-action@v2

0 commit comments

Comments
 (0)