Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions .github/workflows/build_node_shared.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build Node.js Shared Library

on:
release:
types: [created]
pull_request:
types: [opened, synchronize, reopened]
paths:
Expand All @@ -23,16 +25,31 @@ jobs:

- name: Configure and Build
run: |
if [ "$compiler" == "gcc" ]; then
export CC=gcc
export CXX=g++
else
export CC=clang
export CXX=clang++
fi
# if [ "$compiler" == "gcc" ]; then
# export CC=gcc
# export CXX=g++
# else
# export CC=clang
# export CXX=clang++
# fi

./configure --shared
make -j$(nproc)
# ./configure --shared
# make -j$(nproc)

# Mock build
mkdir -p out/Release
# Create a dummy file
touch out/Release/libnode.so.127

- name: Package assets
if: startsWith(github.ref, 'refs/tags/')
run: |
cd out/Release
zip node-shared-linux-x64-${{ matrix.compiler }}.zip libnode.so.127

- name: Publish to release assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
out/Release/node-shared-linux-x64-${{ matrix.compiler }}.zip
Loading