Skip to content

Commit 4776983

Browse files
committed
Prebuild through GitHub Actions
1 parent 7f67305 commit 4776983

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
- master
1010

1111
env:
12-
NODE_BUILD_CMD: npx --no-install prebuild -t 10.12.0 -t 12.13.0 --strip
13-
ELECTRON_BUILD_CMD: npx --no-install prebuild -r electron -t 3.0.0 -t 4.0.0 -t 4.0.4 -t 5.0.0 --strip
12+
NODE_PREBUILD_CMD: npx prebuild -t 10.0.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 --strip
13+
ELECTRON_PREBUILD_CMD: npx prebuild -r electron -t 3.0.0 -t 4.0.0 -t 4.0.4 -t 5.0.0 --strip
1414

1515
jobs:
1616

@@ -19,8 +19,13 @@ jobs:
1919
matrix:
2020
os:
2121
- windows-2019
22+
- ubuntu-latest
2223
node:
2324
- 10
25+
- 12
26+
- 14
27+
- 16
28+
- 18
2429
fail-fast: false
2530
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
2631
runs-on: ${{ matrix.os }}
@@ -35,3 +40,4 @@ jobs:
3540

3641
- run: npm install
3742
- run: npm test
43+
- run: ${{ env.NODE_PREBUILD_CMD }}

binding.gyp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@
4949
]
5050
}
5151
],
52-
'variables': { 'runtime%': 'node' },
52+
'variables': {
53+
'runtime%': 'node',
54+
'v8_enable_pointer_compression%': 0,
55+
'v8_enable_31bit_smis_on_64bit_arch%': 0,
56+
},
5357
'conditions': [
5458
['runtime=="electron"', { 'defines': ['NODE_RUNTIME_ELECTRON=1'] }],
5559
]

0 commit comments

Comments
 (0)