Skip to content

Commit 071291c

Browse files
committed
fix(workflow): make action works by actions/runner#2906 (comment)
1 parent 81d5e59 commit 071291c

11 files changed

+87
-32
lines changed

.github/workflows/cicd.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
container:
4242
image: ghcr.io/4paradigm/hybridsql:latest
4343
env:
44+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
45+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
4446
OS: linux
4547
SQL_PYSDK_ENABLE: OFF
4648
TESTING_ENABLE: ON
@@ -106,7 +108,7 @@ jobs:
106108
107109
- name: upload unit test results
108110
if: always()
109-
uses: actions/upload-artifact@v4
111+
uses: actions/upload-artifact@v3
110112
with:
111113
name: linux-ut-result-cpp-${{ github.sha }}
112114
# exclude _deps xml
@@ -127,7 +129,7 @@ jobs:
127129
128130
- name: upload artifacts
129131
if: ${{ github.event_name == 'push' }}
130-
uses: actions/upload-artifact@v4
132+
uses: actions/upload-artifact@v3
131133
with:
132134
path: openmldb-*.tar.gz
133135
name: release-artifacts
@@ -207,14 +209,14 @@ jobs:
207209
208210
- name: upload artifacts
209211
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
210-
uses: actions/upload-artifact@v4
212+
uses: actions/upload-artifact@v3
211213
with:
212214
path: openmldb-*.tar.gz
213215
name: release-artifacts
214216

215217
- name: Upload Event File
216218
if: always()
217-
uses: actions/upload-artifact@v4
219+
uses: actions/upload-artifact@v3
218220
with:
219221
name: event-file
220222
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@v4
81+
uses: actions/upload-artifact@v3
8282
with:
8383
# include the generated html report in build/coverage, great for local diagnose
8484
name: coverage-cpp-${{ github.sha }}

.github/workflows/devops-test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
container:
2626
image: ghcr.io/4paradigm/hybridsql:latest
2727
env:
28+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
29+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2830
OS: linux
2931
steps:
3032
- uses: actions/checkout@v2
@@ -51,6 +53,8 @@ jobs:
5153
container:
5254
image: ghcr.io/4paradigm/hybridsql:latest
5355
env:
56+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
57+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
5458
OS: linux
5559
steps:
5660
- uses: actions/checkout@v2
@@ -77,6 +81,8 @@ jobs:
7781
container:
7882
image: ghcr.io/4paradigm/hybridsql:latest
7983
env:
84+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
85+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
8086
OS: linux
8187
steps:
8288
- uses: actions/checkout@v2
@@ -103,6 +109,8 @@ jobs:
103109
container:
104110
image: ghcr.io/4paradigm/hybridsql:latest
105111
env:
112+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
113+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
106114
OS: linux
107115
steps:
108116
- uses: actions/checkout@v2
@@ -135,6 +143,8 @@ jobs:
135143
container:
136144
image: ghcr.io/4paradigm/hybridsql:latest
137145
env:
146+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
147+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
138148
OS: linux
139149
steps:
140150
- uses: actions/checkout@v2
@@ -167,6 +177,8 @@ jobs:
167177
container:
168178
image: ghcr.io/4paradigm/hybridsql:latest
169179
env:
180+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
181+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
170182
OS: linux
171183
steps:
172184
- uses: actions/checkout@v2

.github/workflows/hybridse-ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
container:
2929
image: ghcr.io/4paradigm/hybridsql:latest
3030
env:
31+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
32+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3133
TESTING_ENABLE_STRIP: ON
3234
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
3335
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
@@ -44,7 +46,7 @@ jobs:
4446
4547
- name: Upload Cpp UT Results
4648
if: always()
47-
uses: actions/upload-artifact@v4
49+
uses: actions/upload-artifact@v3
4850
with:
4951
name: linux-ut-result-cpp-${{ github.sha }}
5052
path: |
@@ -83,14 +85,14 @@ jobs:
8385
8486
- name: Upload Event File
8587
if: always()
86-
uses: actions/upload-artifact@v4
88+
uses: actions/upload-artifact@v3
8789
with:
8890
name: event-file
8991
path: ${{ github.event_path }}
9092

9193
- name: Upload Cpp UT Results
9294
if: always()
93-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@v3
9496
with:
9597
name: macos-ut-result-cpp-${{ github.sha }}
9698
path: |

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
container:
8686
image: ghcr.io/4paradigm/hybridsql:latest
8787
env:
88+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
89+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
8890
OS: linux
8991
steps:
9092
- uses: actions/checkout@v2
@@ -107,6 +109,8 @@ jobs:
107109
container:
108110
image: ghcr.io/4paradigm/hybridsql:latest
109111
env:
112+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
113+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
110114
OS: linux
111115
steps:
112116
- uses: actions/checkout@v2
@@ -129,6 +133,8 @@ jobs:
129133
container:
130134
image: ghcr.io/4paradigm/hybridsql:latest
131135
env:
136+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
137+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
132138
OS: linux
133139
steps:
134140
- uses: actions/checkout@v2
@@ -192,6 +198,8 @@ jobs:
192198
container:
193199
image: ghcr.io/4paradigm/hybridsql:latest
194200
env:
201+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
202+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
195203
OS: linux
196204
steps:
197205
- uses: actions/checkout@v2
@@ -201,7 +209,7 @@ jobs:
201209
run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "0"
202210
- name: upload test results
203211
if: always()
204-
uses: actions/upload-artifact@v4
212+
uses: actions/upload-artifact@v3
205213
with:
206214
name: python-sdk-standalone-0-pkg-${{ github.sha }}
207215
path: |
@@ -229,6 +237,8 @@ jobs:
229237
container:
230238
image: ghcr.io/4paradigm/hybridsql:latest
231239
env:
240+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
241+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
232242
OS: linux
233243
steps:
234244
- uses: actions/checkout@v2
@@ -238,7 +248,7 @@ jobs:
238248
run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "1,2,3,4,5"
239249
- name: upload test results
240250
if: always()
241-
uses: actions/upload-artifact@v4
251+
uses: actions/upload-artifact@v3
242252
with:
243253
name: python-sdk-standalone-1-pkg-${{ github.sha }}
244254
path: |
@@ -250,6 +260,8 @@ jobs:
250260
container:
251261
image: ghcr.io/4paradigm/hybridsql:latest
252262
env:
263+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
264+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
253265
OS: linux
254266
steps:
255267
- uses: actions/checkout@v2
@@ -271,6 +283,8 @@ jobs:
271283
container:
272284
image: ghcr.io/4paradigm/hybridsql:latest
273285
env:
286+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
287+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
274288
OS: linux
275289
steps:
276290
- uses: actions/checkout@v2

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
container:
7272
image: ghcr.io/4paradigm/hybridsql:latest
7373
env:
74+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
75+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
7476
OS: linux
7577
steps:
7678
- uses: actions/checkout@v2
@@ -114,6 +116,8 @@ jobs:
114116
container:
115117
image: ghcr.io/4paradigm/hybridsql:latest
116118
env:
119+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
120+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
117121
OS: linux
118122
steps:
119123
- uses: actions/checkout@v2
@@ -157,6 +161,8 @@ jobs:
157161
container:
158162
image: ghcr.io/4paradigm/hybridsql:latest
159163
env:
164+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
165+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
160166
OS: linux
161167
steps:
162168
- uses: actions/checkout@v2
@@ -199,6 +205,8 @@ jobs:
199205
container:
200206
image: ghcr.io/4paradigm/hybridsql:latest
201207
env:
208+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
209+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
202210
OS: linux
203211
steps:
204212
- uses: actions/checkout@v2
@@ -284,6 +292,8 @@ jobs:
284292
container:
285293
image: ghcr.io/4paradigm/hybridsql:latest
286294
env:
295+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
296+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
287297
OS: linux
288298
steps:
289299
- uses: actions/checkout@v2
@@ -429,7 +439,7 @@ jobs:
429439
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "0"
430440
# - name: upload test results
431441
# if: always()
432-
# uses: actions/upload-artifact@v4
442+
# uses: actions/upload-artifact@v3
433443
# with:
434444
# name: python-sdk-standalone-0-src-${{ github.sha }}
435445
# path: |
@@ -470,7 +480,7 @@ jobs:
470480
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "1,2,3,4,5"
471481
# - name: upload test results
472482
# if: always()
473-
# uses: actions/upload-artifact@v4
483+
# uses: actions/upload-artifact@v3
474484
# with:
475485
# name: python-sdk-standalone-1-src-${{ github.sha }}
476486
# path: |
@@ -530,6 +540,8 @@ jobs:
530540
container:
531541
image: ghcr.io/4paradigm/hybridsql:latest
532542
env:
543+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
544+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
533545
OS: linux
534546
steps:
535547
- uses: actions/checkout@v2

.github/workflows/integration-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ env:
3131
jobs:
3232
openmldb-test-python:
3333
runs-on: [self-hosted,generic]
34+
env:
35+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
36+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3437
container:
3538
image: ghcr.io/4paradigm/hybridsql:latest
3639
steps:
@@ -52,7 +55,7 @@ jobs:
5255
5356
- name: upload ut results
5457
if: always()
55-
uses: actions/upload-artifact@v4
58+
uses: actions/upload-artifact@v3
5659
with:
5760
name: openmldb-test-python-${{ github.sha }}
5861
path: pytest.xml

.github/workflows/openmldb-tool.yml

Lines changed: 5 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@v4
53+
uses: actions/upload-artifact@v3
5454
with:
5555
name: openmldb-tool-test-result-${{ github.sha }}
5656
path: |
@@ -59,6 +59,9 @@ jobs:
5959
openmldb-tool-name:
6060
runs-on: [self-hosted,generic]
6161
if: github.repository == '4paradigm/OpenMLDB'
62+
env:
63+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
64+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
6265
container:
6366
image: ghcr.io/4paradigm/hybridsql:latest
6467
steps:
@@ -84,7 +87,7 @@ jobs:
8487
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
8588
- name: upload python test results
8689
if: always()
87-
uses: actions/upload-artifact@v4
90+
uses: actions/upload-artifact@v3
8891
with:
8992
name: openmldb-tool-test-result-${{ github.sha }}
9093
path: |

0 commit comments

Comments
 (0)