Skip to content

Commit

Permalink
ci: use a named config for Windows 32 build
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 20, 2024
1 parent 53fca4c commit aa0c4b8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,18 @@ jobs:
architecture: ${{ env.setup_node_arch }}

- name: Build Native
if: ${{ !matrix.docker }}
if:
${{ !matrix.docker && matrix.os != 'windows-2019' && matrix.node_arch
!= 'ia32' }}
run: npm run build.native

- name: Build Native Windows 32
if:
${{ !matrix.docker && matrix.os == 'windows-2019' && matrix.node_arch
== 'ia32' }}
run:
node ./node_modules/cmake-ts/build/main.js named-configs windows-x86

- name: Use Node 18
if: ${{ !matrix.docker }}
uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if(WIN32)
set(CMAKE_SYSTEM_PROCESSOR "x86")
elseif(NOT "$ENV{PROCESSOR_ARCHITEW6432}" STREQUAL "")
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
set(CMAKE_TOOLCHAIN_FILE "Z")
else()
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
endif()
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "windows-x86",
"os": "win32",
"arch": "ia32",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "darwin-x64",
"os": "darwin",
Expand Down

0 comments on commit aa0c4b8

Please sign in to comment.