File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,29 @@ name: Build J2V8
3
3
on : [push]
4
4
5
5
jobs :
6
+ j2v8_macos :
7
+ name : Build J2V8 for macOS
8
+ runs-on : macos-latest
9
+
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v1
13
+
14
+ - name : Download monolithic libraries and extract to v8.out directory
15
+ run : |
16
+ curl -O https://download.eclipsesource.com/j2v8/v8/libv8_7.4.288_monolith.zip
17
+ mkdir -p v8.out
18
+ unzip libv8_7.4.288_monolith.zip -d v8.out
19
+
20
+ # start j2v8 build
21
+ python build.py -t macos -a x64 j2v8cmake j2v8jni j2v8cpp j2v8optimize j2v8java j2v8test
22
+
23
+ - name : Archive J2V8 macOS x86_64 jar
24
+
25
+ with :
26
+ name : j2v8-macos-x86_64
27
+ path : build.out/j2v8_macos_x86_64-6.0.0.jar
28
+
6
29
generate_j2v8_archives :
7
30
name : Create J2V8 Linux jar and Android aar archive files
8
31
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -43,17 +43,19 @@ def build_node_js(config):
43
43
#-----------------------------------------------------------------------
44
44
def build_j2v8_cmake (config ):
45
45
cmake_vars = cmu .setAllVars (config )
46
+ V8_monolith_library_dir = config .platform + "." + config .arch
46
47
47
48
# NOTE: uses Python string interpolation (see: https://stackoverflow.com/a/4450610)
48
49
return \
49
50
u .mkdir (u .cmake_out_dir ) + \
50
51
["cd " + u .cmake_out_dir ] + \
51
52
u .rm ("CMakeCache.txt CMakeFiles/" ) + \
52
53
["""cmake \
54
+ -DJ2V8_MONOLITH_LIB_DIR={0} \
53
55
-DCMAKE_BUILD_TYPE=Release \
54
56
%(cmake_vars)s \
55
57
../../ \
56
- """
58
+ """. format ( V8_monolith_library_dir )
57
59
% locals ()]
58
60
59
61
macos_config .build_step (c .build_j2v8_cmake , build_j2v8_cmake )
You can’t perform that action at this time.
0 commit comments