From 887a5e2be87d7516435335f0e054cf4655c2b1b6 Mon Sep 17 00:00:00 2001 From: cyjseagull Date: Mon, 2 Dec 2024 10:26:52 +0800 Subject: [PATCH] fix centos ci --- .github/workflows/cpp_full_node_workflow.yml | 8 +++++++- .github/workflows/cpp_sdk_workflow.yml | 4 +++- .github/workflows/cpp_toolkit_workflow.yml | 8 +++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cpp_full_node_workflow.yml b/.github/workflows/cpp_full_node_workflow.yml index fee8d67a..0fe6a532 100644 --- a/.github/workflows/cpp_full_node_workflow.yml +++ b/.github/workflows/cpp_full_node_workflow.yml @@ -22,6 +22,8 @@ concurrency: env: RUST_BACKTRACE: 1 ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16 + ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16 jobs: build: @@ -113,9 +115,13 @@ jobs: volumes: - /usr/local/share/vcpkg:/usr/local/share/vcpkg steps: + - name: Set up Node.js 16.x + uses: actions/setup-node@v2 + with: + node-version: "16.x" - uses: actions/checkout@v3 with: - fetch-depth: 5 + clean: false - uses: actions/cache@v3 id: deps_cache with: diff --git a/.github/workflows/cpp_sdk_workflow.yml b/.github/workflows/cpp_sdk_workflow.yml index e75cc273..25520634 100644 --- a/.github/workflows/cpp_sdk_workflow.yml +++ b/.github/workflows/cpp_sdk_workflow.yml @@ -22,6 +22,8 @@ concurrency: env: RUST_BACKTRACE: 1 ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16 + ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16 jobs: build_sdk: @@ -118,7 +120,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - fetch-depth: 5 + clean: false - uses: actions/cache@v3 id: deps_cache with: diff --git a/.github/workflows/cpp_toolkit_workflow.yml b/.github/workflows/cpp_toolkit_workflow.yml index 267d8c51..c1b55ff7 100644 --- a/.github/workflows/cpp_toolkit_workflow.yml +++ b/.github/workflows/cpp_toolkit_workflow.yml @@ -22,6 +22,8 @@ concurrency: env: RUST_BACKTRACE: 1 ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16 + ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16 jobs: build_wedpr_toolkit: @@ -122,9 +124,13 @@ jobs: volumes: - /usr/local/share/vcpkg:/usr/local/share/vcpkg steps: + - name: Set up Node.js 16.x + uses: actions/setup-node@v2 + with: + node-version: "16.x" - uses: actions/checkout@v3 with: - fetch-depth: 5 + clean: false - uses: actions/cache@v3 id: deps_cache with: