File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -582,9 +582,10 @@ jobs:
582
582
make
583
583
- name : create amalgamation
584
584
run : |
585
- build/qjs amalgam.js $RUNNER_TEMP/quickjs-amalgam.c
585
+ make amalgam
586
586
- name : build amalgamation
587
587
run : |
588
+ unzip -d $RUNNER_TEMP build/quickjs-amalgam.zip
588
589
cc -Wall -I. -o $RUNNER_TEMP/run-test262.o -c run-test262.c
589
590
cc -Wall -I/ -DQJS_BUILD_LIBC -o $RUNNER_TEMP/quickjs-amalgam.o -c $RUNNER_TEMP/quickjs-amalgam.c
590
591
cc -o $RUNNER_TEMP/run-test262 $RUNNER_TEMP/run-test262.o $RUNNER_TEMP/quickjs-amalgam.o -lm
Original file line number Diff line number Diff line change 50
50
cd build
51
51
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
52
52
make -j$(getconf _NPROCESSORS_ONLN)
53
- (cd .. && build/qjs amalgam.js build/quickjs-amalgam.c)
54
- cp ../quickjs.h .
55
- zip -9 quickjs-amalgam.zip quickjs-amalgam.c quickjs.h
53
+ make -C .. amalgam # writes build/quickjs-amalgam.zip
56
54
mv qjs qjs-darwin
57
55
mv qjsc qjsc-darwin
58
56
- name : check
Original file line number Diff line number Diff line change 45
45
46
46
all : $(QJS )
47
47
48
+ amalgam : TEMP := $(shell mktemp -d)
49
+ amalgam : $(QJS )
50
+ $(QJS ) amalgam.js $(TEMP ) /quickjs-amalgam.c
51
+ cp quickjs.h quickjs-libc.h $(TEMP )
52
+ cd $(TEMP ) && zip -9 quickjs-amalgam.zip quickjs-amalgam.c quickjs.h quickjs-libc.h
53
+ cp $(TEMP ) /quickjs-amalgam.zip $(BUILD_DIR )
54
+ cd $(TEMP ) && $(RM ) quickjs-amalgam.zip quickjs-amalgam.c quickjs.h quickjs-libc.h
55
+ $(RM ) -d $(TEMP )
56
+
48
57
fuzz :
49
58
clang -g -O1 -fsanitize=address,undefined,fuzzer -o fuzz fuzz.c
50
59
./fuzz
@@ -117,4 +126,4 @@ unicode_gen: $(BUILD_DIR)
117
126
libunicode-table.h : unicode_gen
118
127
$(BUILD_DIR ) /unicode_gen unicode $@
119
128
120
- .PHONY : all ctest cxxtest debug fuzz install clean codegen distclean stats test test262 test262-update test262-check microbench unicode_gen $(QJS ) $(QJSC )
129
+ .PHONY : all amalgam ctest cxxtest debug fuzz install clean codegen distclean stats test test262 test262-update test262-check microbench unicode_gen $(QJS ) $(QJSC )
You can’t perform that action at this time.
0 commit comments