File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ jobs:
31
31
run : |
32
32
mkdir dist
33
33
bash ./build-engine.sh release
34
- tar -a -cf dist/spidermonkey-wasm-static-lib_release.tar.gz include lib
35
- rm -rf include lib obj
34
+ tar -a -cf dist/spidermonkey-wasm-static-lib_release.tar.gz release
35
+ rm -rf release obj-release
36
36
bash ./build-engine.sh debug
37
- tar -a -cf dist/spidermonkey-wasm-static-lib_debug.tar.gz include lib
37
+ tar -a -cf dist/spidermonkey-wasm-static-lib_debug.tar.gz debug
38
38
39
39
- name : Calculate tag name
40
40
run : |
Original file line number Diff line number Diff line change @@ -43,24 +43,27 @@ python3 \
43
43
44
44
cd ${working_dir}
45
45
46
+ mode=" release"
46
47
flags=" --optimize --no-debug --build-only"
47
- rust_lib_dir=" release"
48
48
if [[ $1 == ' debug' ]]
49
49
then
50
+ mode=" debug"
50
51
flags=" --optimize --debug"
51
- rust_lib_dir=" debug"
52
52
fi
53
+ rust_lib_dir=$mode
54
+ objdir=obj-$mode
55
+ outdir=$mode
53
56
54
57
echo $flags $rust_lib_dir
55
58
56
59
# Build SpiderMonkey for WASI
57
- MOZ_FETCHES_DIR=~ /.mozbuild CC=~ /.mozbuild/clang/bin/clang gecko-dev/js/src/devtools/automation/autospider.py --objdir=obj $flags wasi
60
+ MOZ_FETCHES_DIR=~ /.mozbuild CC=~ /.mozbuild/clang/bin/clang gecko-dev/js/src/devtools/automation/autospider.py --objdir=$objdir $flags wasi
58
61
59
62
# Copy header, object, and static lib files
60
- rm -rf lib include
61
- mkdir lib
63
+ rm -rf $outdir
64
+ mkdir -p $outdir / lib
62
65
63
- cd obj
64
- cp -Lr dist/include ..
65
- cp $( cat $script_dir /object-files.list) ../lib
66
- cp js/src/build/libjs_static.a wasm32-wasi/${rust_lib_dir} /libjsrust.a ../lib
66
+ cd $objdir
67
+ cp -Lr dist/include ../ $outdir
68
+ cp $( cat $script_dir /object-files.list) ../$outdir / lib
69
+ cp js/src/build/libjs_static.a wasm32-wasi/${rust_lib_dir} /libjsrust.a ../$outdir / lib
You can’t perform that action at this time.
0 commit comments