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 581d15e commit 4b4192f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
- os: ubuntu-22.04
docker: node:18-alpine
docker_cmd:
apk add --no-cache bash build-base curl git g++ make ninja-build
pkgconfig sudo unzip zip python3 tar musl-dev && npm i -g pnpm &&
pnpm install && pnpm run build
apk add --no-cache pkgconfig tar python3 build-base cmake ninja
zip unzip curl git musl-dev gcc g++ && npm i -g pnpm && pnpm
install && pnpm run build
node_arch: x64
cpp_arch: x64

Expand Down 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
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 4b4192f

Please sign in to comment.