File tree Expand file tree Collapse file tree 1 file changed +26
-16
lines changed Expand file tree Collapse file tree 1 file changed +26
-16
lines changed Original file line number Diff line number Diff line change 14
14
strategy :
15
15
matrix :
16
16
compiler : [gcc, clang]
17
+ build_type : [debug, release]
17
18
container :
18
19
image : ghcr.io/ten-framework/ten_building_ubuntu2204
19
20
steps :
@@ -25,31 +26,40 @@ jobs:
25
26
26
27
- name : Configure and Build
27
28
run : |
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
29
+ if [ "$compiler" == "gcc" ]; then
30
+ export CC=gcc
31
+ export CXX=g++
32
+ else
33
+ export CC=clang
34
+ export CXX=clang++
35
+ fi
35
36
36
- # ./configure --shared
37
- # make -j$(nproc)
37
+ if [ "$build_type" == "debug" ]; then
38
+ ./configure --shared --debug
39
+ else
40
+ ./configure --shared
41
+ fi
38
42
39
- # Mock build
40
- mkdir -p out/Release
41
- # Create a dummy file
42
- touch out/Release/libnode.so.127
43
+ make -j$(nproc)
43
44
44
45
- name : Package assets
45
46
if : startsWith(github.ref, 'refs/tags/')
46
47
run : |
47
- cd out/Release
48
- zip node-shared-linux-x64-${{ matrix.compiler }}.zip libnode.so.127
48
+ if [ "$build_type" == "debug" ]; then
49
+ cd out/Debug
50
+ else
51
+ cd out/Release
52
+ fi
53
+
54
+ zip node-shared-linux-x64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip libnode.so.127
49
55
50
56
- name : Publish to release assets
51
57
uses : softprops/action-gh-release@v2
52
58
if : startsWith(github.ref, 'refs/tags/')
53
59
with :
54
60
files : |
55
- out/Release/node-shared-linux-x64-${{ matrix.compiler }}.zip
61
+ if [ "$build_type" == "debug" ]; then
62
+ out/Debug/node-shared-linux-x64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip
63
+ else
64
+ out/Release/node-shared-linux-x64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip
65
+ fi
You can’t perform that action at this time.
0 commit comments