Skip to content

Commit 0fc44d9

Browse files
committed
ci: add node-integration
1 parent 0fdb0ec commit 0fc44d9

File tree

2 files changed

+67
-32
lines changed

2 files changed

+67
-32
lines changed

.github/workflows/nodejs-windows.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Node.js integration
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
integration:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [macos-latest, macos-14, ubuntu-latest]
15+
python: ["3.8", "3.10", "3.12"]
16+
exclude:
17+
- os: macos-14
18+
python: "3.8"
19+
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- name: Clone gyp-next
23+
uses: actions/checkout@v4
24+
with:
25+
path: gyp-next
26+
- name: Clone nodejs/node
27+
uses: actions/checkout@v4
28+
with:
29+
repository: nodejs/node
30+
path: node
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: ${{ matrix.python }}
34+
allow-prereleases: true
35+
- name: Replace gyp in node
36+
shell: bash
37+
run: |
38+
rm -rf node/tools/gyp
39+
cp -r gyp-next node/tools/gyp
40+
- name: Run configure
41+
shell: bash
42+
run: |
43+
cd node
44+
./configure
45+
46+
integration-windows:
47+
runs-on: windows-latest
48+
steps:
49+
- name: Clone gyp-next
50+
uses: actions/checkout@v4
51+
with:
52+
path: gyp-next
53+
- name: Clone nodejs/node
54+
uses: actions/checkout@v4
55+
with:
56+
repository: nodejs/node
57+
path: node
58+
- name: Install deps
59+
run: choco install nasm
60+
- name: Replace gyp in Node.js
61+
run: |
62+
rm -Recurse node/tools/gyp
63+
cp -Recurse gyp-next node/tools/gyp
64+
- name: Build Node.js
65+
run: |
66+
cd node
67+
./vcbuild.bat

0 commit comments

Comments
 (0)