36
36
37
37
jobs :
38
38
cpp :
39
- runs-on : [self-hosted,generic]
39
+ runs-on : [self-hosted, generic]
40
40
if : github.repository == '4paradigm/OpenMLDB'
41
41
container :
42
42
image : ghcr.io/4paradigm/hybridsql:latest
43
43
env :
44
- ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION : node16
45
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
46
44
OS : linux
47
45
SQL_PYSDK_ENABLE : OFF
48
46
TESTING_ENABLE : ON
49
- NPROC : 8
47
+ NPROC : 4
50
48
CTEST_PARALLEL_LEVEL : 1 # parallel test level for ctest (make test)
51
- # ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
52
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
53
49
steps :
54
- - uses : actions/checkout@v2
50
+ - uses : actions/checkout@v4
55
51
56
52
- name : prepare release
57
53
run : |
@@ -71,38 +67,42 @@ jobs:
71
67
- name : configure
72
68
env :
73
69
SQL_JAVASDK_ENABLE : ${{ env.SQL_JAVASDK_ENABLE }}
70
+ shell : bash
74
71
run : |
75
72
make configure CMAKE_INSTALL_PREFIX=${{ env.OPENMLDB_PREFIX }}
76
73
77
74
- name : build
75
+ shell : bash
78
76
run : |
79
77
make build
80
- # GitHub runner disk space is limited
81
- # delete thirdparty build directory($ROOT/.deps/) to save disk space
82
- # make thirdpartybuild-clean
83
78
84
79
- name : run cpp
85
80
id : unittest
86
81
run : |
82
+ shell : bash
87
83
make test
88
84
89
85
- name : run sql_router_test
90
86
id : sql_router_test
87
+ shell : bash
91
88
run : |
92
89
bash steps/ut.sh sql_router_test 0
93
90
94
91
- name : run sql_sdk_test
95
92
id : sql_sdk_test
93
+ shell : bash
96
94
run : |
97
95
bash steps/ut.sh sql_sdk_test 0
98
96
99
97
- name : run sql_cluster_test
100
98
id : sql_cluster_test
99
+ shell : bash
101
100
run : |
102
101
bash steps/ut.sh sql_cluster_test 0
103
102
104
103
- name : run sql_standalone_sdk_test
105
104
id : sql_standalone_sdk_test
105
+ shell : bash
106
106
run : |
107
107
bash steps/ut.sh sql_standalone_sdk_test 0
108
108
@@ -119,6 +119,7 @@ jobs:
119
119
120
120
- name : install
121
121
if : ${{ github.event_name == 'push' }}
122
+ shell : bash
122
123
run : |
123
124
make install
124
125
0 commit comments