Skip to content

Commit b270737

Browse files
committed
fix centos ci
1 parent 0206eb5 commit b270737

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.github/workflows/cpp_full_node_workflow.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ concurrency:
2222
env:
2323
RUST_BACKTRACE: 1
2424
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
25+
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
26+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
2527

2628
jobs:
2729
build:
@@ -113,9 +115,13 @@ jobs:
113115
volumes:
114116
- /usr/local/share/vcpkg:/usr/local/share/vcpkg
115117
steps:
118+
- name: Set up Node.js 16.x
119+
uses: actions/setup-node@v2
120+
with:
121+
node-version: "16.x"
116122
- uses: actions/checkout@v3
117123
with:
118-
fetch-depth: 5
124+
clean: false
119125
- uses: actions/cache@v3
120126
id: deps_cache
121127
with:

.github/workflows/cpp_sdk_workflow.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ concurrency:
2222
env:
2323
RUST_BACKTRACE: 1
2424
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
25+
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
26+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
2527

2628
jobs:
2729
build_sdk:
@@ -116,9 +118,14 @@ jobs:
116118
volumes:
117119
- /usr/local/share/vcpkg:/usr/local/share/vcpkg
118120
steps:
121+
- name: replace nodes
122+
run: |
123+
rm -rf /__e/node20
124+
echo "#### nodes list: "`ls /__e/node*`
125+
cd /__e/ ln -s /__e/node16 node20
119126
- uses: actions/checkout@v3
120127
with:
121-
fetch-depth: 5
128+
clean: false
122129
- uses: actions/cache@v3
123130
id: deps_cache
124131
with:

.github/workflows/cpp_toolkit_workflow.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ concurrency:
2222
env:
2323
RUST_BACKTRACE: 1
2424
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
25+
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
26+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
2527

2628
jobs:
2729
build_wedpr_toolkit:
@@ -122,9 +124,13 @@ jobs:
122124
volumes:
123125
- /usr/local/share/vcpkg:/usr/local/share/vcpkg
124126
steps:
127+
- name: Set up Node.js 16.x
128+
uses: actions/setup-node@v2
129+
with:
130+
node-version: "16.x"
125131
- uses: actions/checkout@v3
126132
with:
127-
fetch-depth: 5
133+
clean: false
128134
- uses: actions/cache@v3
129135
id: deps_cache
130136
with:

0 commit comments

Comments
 (0)