Skip to content

Commit 128cb94

Browse files
authored
fix(workflow): using bash as shell for cicd.yaml (#4016)
Signed-off-by: shouren <yangshouren@gmail.com>
1 parent 0e3b58c commit 128cb94

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/cicd.yaml

+11-10
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,18 @@ env:
3636

3737
jobs:
3838
cpp:
39-
runs-on: [self-hosted,generic]
39+
runs-on: [self-hosted, generic]
4040
if: github.repository == '4paradigm/OpenMLDB'
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
4644
OS: linux
4745
SQL_PYSDK_ENABLE: OFF
4846
TESTING_ENABLE: ON
49-
NPROC: 8
47+
NPROC: 4
5048
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
5349
steps:
54-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5551

5652
- name: prepare release
5753
run: |
@@ -71,38 +67,42 @@ jobs:
7167
- name: configure
7268
env:
7369
SQL_JAVASDK_ENABLE: ${{ env.SQL_JAVASDK_ENABLE }}
70+
shell: bash
7471
run: |
7572
make configure CMAKE_INSTALL_PREFIX=${{ env.OPENMLDB_PREFIX }}
7673
7774
- name: build
75+
shell: bash
7876
run: |
7977
make build
80-
# GitHub runner disk space is limited
81-
# delete thirdparty build directory($ROOT/.deps/) to save disk space
82-
# make thirdpartybuild-clean
8378
8479
- name: run cpp
8580
id: unittest
8681
run: |
82+
shell: bash
8783
make test
8884

8985
- name: run sql_router_test
9086
id: sql_router_test
87+
shell: bash
9188
run: |
9289
bash steps/ut.sh sql_router_test 0
9390
9491
- name: run sql_sdk_test
9592
id: sql_sdk_test
93+
shell: bash
9694
run: |
9795
bash steps/ut.sh sql_sdk_test 0
9896
9997
- name: run sql_cluster_test
10098
id: sql_cluster_test
99+
shell: bash
101100
run: |
102101
bash steps/ut.sh sql_cluster_test 0
103102
104103
- name: run sql_standalone_sdk_test
105104
id: sql_standalone_sdk_test
105+
shell: bash
106106
run: |
107107
bash steps/ut.sh sql_standalone_sdk_test 0
108108
@@ -119,6 +119,7 @@ jobs:
119119
120120
- name: install
121121
if: ${{ github.event_name == 'push' }}
122+
shell: bash
122123
run: |
123124
make install
124125

.github/workflows/selfhost_intergration.yml

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ jobs:
9090
if: always()
9191
run: bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
9292
- name: TEST Results
93-
shell: bash
9493
if: always()
9594
uses: EnricoMi/publish-unit-test-result-action@v1
9695
with:

0 commit comments

Comments
 (0)