Skip to content

Commit a135fb2

Browse files
Shourennmreadelf
authored andcommitted
fix(workflow): upgrade upload-artifact to v4
1 parent aa3d0a8 commit a135fb2

10 files changed

+33
-33
lines changed

.github/workflows/cicd.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
105105
- name: upload unit test results
106106
if: always()
107-
uses: actions/upload-artifact@v2
107+
uses: actions/upload-artifact@v4
108108
with:
109109
name: linux-ut-result-cpp-${{ github.sha }}
110110
# exclude _deps xml
@@ -125,7 +125,7 @@ jobs:
125125
126126
- name: upload artifacts
127127
if: ${{ github.event_name == 'push' }}
128-
uses: actions/upload-artifact@v2
128+
uses: actions/upload-artifact@v4
129129
with:
130130
path: openmldb-*.tar.gz
131131
name: release-artifacts
@@ -205,14 +205,14 @@ jobs:
205205
206206
- name: upload artifacts
207207
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
208-
uses: actions/upload-artifact@v3
208+
uses: actions/upload-artifact@v4
209209
with:
210210
path: openmldb-*.tar.gz
211211
name: release-artifacts
212212

213213
- name: Upload Event File
214214
if: always()
215-
uses: actions/upload-artifact@v3
215+
uses: actions/upload-artifact@v4
216216
with:
217217
name: event-file
218218
path: ${{ github.event_path }}

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
df -h
7979
8080
- name: upload coverage
81-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@v4
8282
with:
8383
# include the generated html report in build/coverage, great for local diagnose
8484
name: coverage-cpp-${{ github.sha }}

.github/workflows/hybridse-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
- name: Upload Cpp UT Results
4444
if: always()
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v4
4646
with:
4747
name: linux-ut-result-cpp-${{ github.sha }}
4848
path: |
@@ -81,14 +81,14 @@ jobs:
8181
8282
- name: Upload Event File
8383
if: always()
84-
uses: actions/upload-artifact@v3
84+
uses: actions/upload-artifact@v4
8585
with:
8686
name: event-file
8787
path: ${{ github.event_path }}
8888

8989
- name: Upload Cpp UT Results
9090
if: always()
91-
uses: actions/upload-artifact@v3
91+
uses: actions/upload-artifact@v4
9292
with:
9393
name: macos-ut-result-cpp-${{ github.sha }}
9494
path: |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "0"
200200
- name: upload test results
201201
if: always()
202-
uses: actions/upload-artifact@v2
202+
uses: actions/upload-artifact@v4
203203
with:
204204
name: python-sdk-standalone-0-pkg-${{ github.sha }}
205205
path: |
@@ -236,7 +236,7 @@ jobs:
236236
run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "1,2,3,4,5"
237237
- name: upload test results
238238
if: always()
239-
uses: actions/upload-artifact@v2
239+
uses: actions/upload-artifact@v4
240240
with:
241241
name: python-sdk-standalone-1-pkg-${{ github.sha }}
242242
path: |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ jobs:
427427
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "0"
428428
# - name: upload test results
429429
# if: always()
430-
# uses: actions/upload-artifact@v2
430+
# uses: actions/upload-artifact@v4
431431
# with:
432432
# name: python-sdk-standalone-0-src-${{ github.sha }}
433433
# path: |
@@ -468,7 +468,7 @@ jobs:
468468
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "1,2,3,4,5"
469469
# - name: upload test results
470470
# if: always()
471-
# uses: actions/upload-artifact@v2
471+
# uses: actions/upload-artifact@v4
472472
# with:
473473
# name: python-sdk-standalone-1-src-${{ github.sha }}
474474
# path: |

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: upload ut results
5252
if: always()
53-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: openmldb-test-python-${{ github.sha }}
5656
path: pytest.xml

.github/workflows/openmldb-tool.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
4949
- name: upload python test results
5050
if: always()
51-
uses: actions/upload-artifact@v2
51+
uses: actions/upload-artifact@v4
5252
with:
5353
name: openmldb-tool-test-result-${{ github.sha }}
5454
path: |
@@ -82,7 +82,7 @@ jobs:
8282
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
8383
- name: upload python test results
8484
if: always()
85-
uses: actions/upload-artifact@v2
85+
uses: actions/upload-artifact@v4
8686
with:
8787
name: openmldb-tool-test-result-${{ github.sha }}
8888
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@v2
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@v2
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@v2
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@v2
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@v2
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@v2
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@v2
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@v2
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@v2
293+
uses: actions/upload-artifact@v4
294294
with:
295295
name: python-whl
296296
path: |

.github/workflows/sdk.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
8383
- name: upload linux library
8484
if: github.event_name == 'push'
85-
uses: actions/upload-artifact@v2
85+
uses: actions/upload-artifact@v4
8686
with:
8787
name: shared-library-${{ github.sha }}
8888
path: |
@@ -102,14 +102,14 @@ jobs:
102102
103103
- name: Upload Event File
104104
if: always()
105-
uses: actions/upload-artifact@v2
105+
uses: actions/upload-artifact@v4
106106
with:
107107
name: event-file
108108
path: ${{ github.event_path }}
109109

110110
- name: upload java ut results
111111
if: always()
112-
uses: actions/upload-artifact@v2
112+
uses: actions/upload-artifact@v4
113113
with:
114114
name: linux-ut-result-java-${{ github.sha }}
115115
path: |
@@ -134,7 +134,7 @@ jobs:
134134
./mvnw --batch-mode scoverage:report
135135
136136
- name: upload coverage
137-
uses: actions/upload-artifact@v3
137+
uses: actions/upload-artifact@v4
138138
with:
139139
name: coverage-java-report-${{ github.sha }}
140140
path: |
@@ -283,15 +283,15 @@ jobs:
283283
284284
- name: upload python ut results
285285
if: always()
286-
uses: actions/upload-artifact@v2
286+
uses: actions/upload-artifact@v4
287287
with:
288288
name: linux-ut-result-python-${{ github.sha }}
289289
path: |
290290
python/openmldb_sdk/tests/pytest.xml
291291
python/openmldb_tool/tests/pytest.xml
292292
293293
- name: upload coverage
294-
uses: actions/upload-artifact@v3
294+
uses: actions/upload-artifact@v4
295295
with:
296296
name: coverage-python-report-${{ github.sha }}
297297
path: |
@@ -350,7 +350,7 @@ jobs:
350350
351351
- name: upload python ut results
352352
if: always()
353-
uses: actions/upload-artifact@v2
353+
uses: actions/upload-artifact@v4
354354
with:
355355
name: mac-ut-result-python-${{ github.sha }}
356356
path: |
@@ -403,7 +403,7 @@ jobs:
403403
run: go test ./... -race -covermode=atomic -coverprofile=coverage.out
404404

405405
- name: upload coverage
406-
uses: actions/upload-artifact@v3
406+
uses: actions/upload-artifact@v4
407407
with:
408408
name: coverage-go-report-${{ github.sha }}
409409
path: go/coverage.out

.github/workflows/selfhost_intergration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
tar -zxf openmldb-${{ env.E_VERSION }}-linux.tar.gz
5050
mv openmldb-${{ env.E_VERSION }}-linux.tar.gz openmldb-linux.tar.gz
5151
- name: upload artifact
52-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
5353
with:
5454
name: openmldb-package
5555
path: |

0 commit comments

Comments
 (0)