File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -566,3 +566,29 @@ jobs:
566
566
- name : test
567
567
run : |
568
568
make test
569
+
570
+ amalgam :
571
+ strategy :
572
+ matrix :
573
+ # TODO(bnoordhuis) test on windows
574
+ config :
575
+ - { os: ubuntu-latest }
576
+ - { os: macos-latest }
577
+ runs-on : ${{ matrix.config.os }}
578
+ steps :
579
+ - uses : actions/checkout@v4
580
+ - name : build
581
+ run : |
582
+ make
583
+ - name : copy files
584
+ run : |
585
+ cp quickjs.h run-test262.c $RUNNER_TEMP
586
+ - name : create amalgamation
587
+ run : |
588
+ build/qjs amalgam.js $RUNNER_TEMP/quickjs-amalgam.c
589
+ - name : build amalgamation
590
+ run : |
591
+ cd $RUNNER_TEMP && cc -Wall -o run-test262 run-test262.c quickjs-amalgam.c
592
+ - name : test
593
+ run : |
594
+ make test RUN262=$RUNNER_TEMP/run-test262
Original file line number Diff line number Diff line change @@ -43,4 +43,4 @@ source = source.replace(/#include "quickjs-atom.h"/g, quickjs_atom_h)
43
43
source = source . replace ( / # i n c l u d e " q u i c k j s - o p c o d e .h " / g, quickjs_opcode_h )
44
44
source = source . replace ( / # i n c l u d e " l i b r e g e x p - o p c o d e .h " / g, libregexp_opcode_h )
45
45
source = source . replace ( / # i n c l u d e " [ ^ " ] + " / g, "" )
46
- writeFile ( "quickjs-amalgam.c" , source )
46
+ writeFile ( execArgv [ 2 ] ?? "quickjs-amalgam.c" , source )
You can’t perform that action at this time.
0 commit comments