Skip to content

Commit 01e4fe9

Browse files
committed
ci: fix the the setup_node_arch
1 parent 729e0d2 commit 01e4fe9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/CI.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
npm_config_zmq_shared: false
6666
npm_config_arch: ${{ matrix.node_arch }}
6767
npm_config_target_arch: ${{ matrix.node_arch }}
68+
setup_node_arch: ${{ matrix.node_arch }}
6869
steps:
6970
- uses: actions/checkout@v4
7071

@@ -80,6 +81,13 @@ jobs:
8081
restore-keys: |
8182
"cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ env.npm_config_zmq_draft }}-Node:${{ matrix.node_version }}-"
8283
84+
- name: Env map
85+
run: |
86+
if [ "${{ matrix.node_arch }}" = "ia32" ]; then
87+
echo "setup_node_arch=x86" > $GITHUB_ENV
88+
fi
89+
shell: bash
90+
8391
- name: Setup Cpp
8492
if: ${{ !matrix.docker }}
8593
uses: aminya/setup-cpp@v1
@@ -99,7 +107,7 @@ jobs:
99107
uses: actions/setup-node@v4
100108
with:
101109
node-version: ${{ matrix.node_version }}
102-
architecture: ${{ matrix.node_arch }}
110+
architecture: ${{ env.setup_node_arch }}
103111

104112
- name: Install Mac-OS x86_64 Dependencies
105113
if: ${{ contains(matrix.os, 'macos') && matrix.node_arch == 'x64' }}

0 commit comments

Comments
 (0)