Skip to content

Commit aa0c4b8

Browse files
committed
ci: use a named config for Windows 32 build
1 parent 53fca4c commit aa0c4b8

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,18 @@ jobs:
132132
architecture: ${{ env.setup_node_arch }}
133133

134134
- name: Build Native
135-
if: ${{ !matrix.docker }}
135+
if:
136+
${{ !matrix.docker && matrix.os != 'windows-2019' && matrix.node_arch
137+
!= 'ia32' }}
136138
run: npm run build.native
137139

140+
- name: Build Native Windows 32
141+
if:
142+
${{ !matrix.docker && matrix.os == 'windows-2019' && matrix.node_arch
143+
== 'ia32' }}
144+
run:
145+
node ./node_modules/cmake-ts/build/main.js named-configs windows-x86
146+
138147
- name: Use Node 18
139148
if: ${{ !matrix.docker }}
140149
uses: actions/setup-node@v4

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if(WIN32)
1010
set(CMAKE_SYSTEM_PROCESSOR "x86")
1111
elseif(NOT "$ENV{PROCESSOR_ARCHITEW6432}" STREQUAL "")
1212
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
13+
set(CMAKE_TOOLCHAIN_FILE "Z")
1314
else()
1415
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
1516
endif()

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@
135135
"runtime": "node",
136136
"runtimeVersion": "12.22.12"
137137
},
138+
{
139+
"name": "windows-x86",
140+
"os": "win32",
141+
"arch": "ia32",
142+
"runtime": "node",
143+
"runtimeVersion": "12.22.12"
144+
},
138145
{
139146
"name": "darwin-x64",
140147
"os": "darwin",

0 commit comments

Comments
 (0)