Skip to content

Commit 3643c4e

Browse files
committed
feat: add github workflow
0 parents  commit 3643c4e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Node.js Shared Library
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
paths:
7+
- '.github/workflows/build_node_shared.yml'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
compiler: [gcc, clang]
15+
container:
16+
image: ghcr.io/ten-framework/ten_building_ubuntu2204
17+
steps:
18+
- name: Checkout Node.js
19+
uses: actions/checkout@v4
20+
with:
21+
repository: nodejs/node
22+
ref: v22.12.0
23+
24+
- name: Configure and Build
25+
run: |
26+
if [ "$compiler" == "gcc" ]; then
27+
export CC=gcc
28+
export CXX=g++
29+
else
30+
export CC=clang
31+
export CXX=clang++
32+
fi
33+
34+
./configure --shared
35+
make -j$(nproc)
36+
37+
cd out/Release
38+
zip node-shared-linux-x64-${{ matrix.compiler }}.zip libnode.so.127

0 commit comments

Comments
 (0)