2424 strategy :
2525 fail-fast : false
2626 matrix :
27- build : [release, weval]
27+ build : [release, debug, weval]
2828 os : [ubuntu-latest]
2929 runs-on : ${{ matrix.os }}
3030 steps :
@@ -39,55 +39,28 @@ jobs:
3939 with :
4040 node-version : ' lts/*'
4141
42- - name : Build StarlingMonkey
42+ - name : Configure StarlingMonkey
4343 run : |
4444 cmake -S . -B cmake-build-${{ matrix.build }}\
4545 -DCMAKE_BUILD_TYPE=${{ (matrix.build == 'release' || matrix.build == 'weval') && 'Release' || 'Debug' }}\
4646 ${{matrix.build == 'weval' && '-DUSE_WASM_OPT=OFF -DWEVAL=ON' || ''}}
47- cmake --build cmake-build-${{ matrix.build }} --parallel 4 --target all integration-test-server
48-
49- - name : StarlingMonkey E2E & Integration Tests
50- run : |
51- CTEST_OUTPUT_ON_FAILURE=1 ctest --test-dir cmake-build-${{ matrix.build }} -j4
52-
53- wpt :
54- name : Web Platform Tests
55- strategy :
56- matrix :
57- build : [release, debug, weval]
58- runs-on : ubuntu-latest
59- steps :
60- - uses : actions/checkout@v2
61- with :
62- submodules : recursive
6347
64- - name : Install Rust 1.80.0
48+ - name : Build StarlingMonkey
6549 run : |
66- rustup toolchain install 1.80.0
67- rustup target add wasm32-wasip1 --toolchain 1.80.0
50+ cmake --build cmake-build-${{ matrix.build }} --parallel $(nproc) --target all
6851
69- - uses : actions/setup-node@v2
70- with :
71- node-version : ' lts/*'
72-
73- - name : Build StarlingMonkey WPT
74- if : matrix.build != 'weval'
52+ - name : Build Integration Test Server
7553 run : |
76- cmake -S . -B cmake-build-${{ matrix.build }} -DENABLE_WPT:BOOL=ON -DCMAKE_BUILD_TYPE=${{ matrix.build == 'release' && 'Release' || 'Debug' }}
77- cmake --build cmake-build-${{ matrix.build }} --parallel 4 --target wpt-runtime
54+ cmake --build cmake-build-${{ matrix.build }} --parallel $(nproc) --target integration-test-server
7855
79- - name : Build StarlingMonkey WPT Weval
80- if : matrix.build == 'weval'
56+ - name : Build WPT Runtime
8157 run : |
82- cmake -S . -B cmake-build-weval -DCMAKE_BUILD_TYPE=Release -DUSE_WASM_OPT=OFF -DWEVAL=ON -DENABLE_WPT:BOOL=ON
83- cmake --build cmake-build-weval --parallel 4 --target starling-ics.wevalcache
84- cmake --build cmake-build-weval --parallel 4 --target wpt-runtime
58+ cmake --build cmake-build-${{ matrix.build }} --parallel $(nproc) --target wpt-runtime
8559
8660 - name : Prepare WPT hosts
8761 run : |
8862 cat deps/wpt-hosts | sudo tee -a /etc/hosts
8963
90- - name : StarlingMonkey WPT Test
91- env :
92- CTEST_OUTPUT_ON_FAILURE : 1
93- run : ctest -R wpt --test-dir cmake-build-${{ matrix.build }} --verbose --no-tests=error
64+ - name : StarlingMonkey E2E, Integration, and WPT Tests
65+ run : |
66+ CTEST_OUTPUT_ON_FAILURE=1 ctest --test-dir cmake-build-${{ matrix.build }} -j$(nproc) --verbose
0 commit comments