File tree 1 file changed +26
-9
lines changed
1 file changed +26
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Build Node.js Shared Library
2
2
3
3
on :
4
+ release :
5
+ types : [created]
4
6
pull_request :
5
7
types : [opened, synchronize, reopened]
6
8
paths :
@@ -23,16 +25,31 @@ jobs:
23
25
24
26
- name : Configure and Build
25
27
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
28
+ # if [ "$compiler" == "gcc" ]; then
29
+ # export CC=gcc
30
+ # export CXX=g++
31
+ # else
32
+ # export CC=clang
33
+ # export CXX=clang++
34
+ # fi
33
35
34
- ./configure --shared
35
- make -j$(nproc)
36
+ # ./configure --shared
37
+ # make -j$(nproc)
36
38
39
+ # Mock build
40
+ mkdir -p out/Release
41
+ # Create a dummy file
42
+ touch out/Release/libnode.so.127
43
+
44
+ - name : Package assets
45
+ if : startsWith(github.ref, 'refs/tags/')
46
+ run : |
37
47
cd out/Release
38
48
zip node-shared-linux-x64-${{ matrix.compiler }}.zip libnode.so.127
49
+
50
+ - name : Publish to release assets
51
+ uses : softprops/action-gh-release@v2
52
+ if : startsWith(github.ref, 'refs/tags/')
53
+ with :
54
+ files : |
55
+ out/Release/node-shared-linux-x64-${{ matrix.compiler }}.zip
You can’t perform that action at this time.
0 commit comments