Test Debug and Release CMake build types on CI (#52)
This commit is contained in:
parent
920cfc679a
commit
94b85a0784
2 changed files with 45 additions and 6 deletions
49
.github/workflows/ci.yml
vendored
49
.github/workflows/ci.yml
vendored
|
@ -50,18 +50,37 @@ jobs:
|
|||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y UBSAN_OPTIONS="halt_on_error=1" test
|
||||
linux-cmake:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
buildType: [Debug, Release]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
- name: build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} ..
|
||||
cd ..
|
||||
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
||||
- name: stats
|
||||
run: |
|
||||
./build/qjs -qd
|
||||
- name: test
|
||||
run: |
|
||||
./build/qjs tests/test_bigint.js
|
||||
./build/qjs tests/test_closure.js
|
||||
./build/qjs tests/test_language.js
|
||||
./build/qjs tests/test_builtin.js
|
||||
./build/qjs tests/test_loop.js
|
||||
./build/qjs tests/test_std.js
|
||||
./build/qjs tests/test_worker.js
|
||||
- name: test 262
|
||||
if: ${{ matrix.buildType == 'Release' }}
|
||||
run: |
|
||||
time ./build/run-test262 -m -c test262.conf -a
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
|
@ -93,18 +112,31 @@ jobs:
|
|||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y UBSAN_OPTIONS="halt_on_error=1" test
|
||||
macos-cmake:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
buildType: [Debug, Release]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} ..
|
||||
cd ..
|
||||
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
||||
- name: stats
|
||||
run: |
|
||||
./build/qjs -qd
|
||||
- name: test
|
||||
run: |
|
||||
./build/qjs tests/test_bigint.js
|
||||
./build/qjs tests/test_closure.js
|
||||
./build/qjs tests/test_language.js
|
||||
./build/qjs tests/test_builtin.js
|
||||
./build/qjs tests/test_loop.js
|
||||
./build/qjs tests/test_std.js
|
||||
./build/qjs tests/test_worker.js
|
||||
|
||||
windows-mingw:
|
||||
runs-on: windows-latest
|
||||
|
@ -146,6 +178,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
buildType: [Debug, Release]
|
||||
sys:
|
||||
- mingw64
|
||||
- ucrt64
|
||||
|
@ -154,8 +187,6 @@ jobs:
|
|||
shell: msys2 {0}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
- name: Setup MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
|
@ -171,9 +202,17 @@ jobs:
|
|||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} ..
|
||||
cd ..
|
||||
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
||||
- name: stats
|
||||
run: |
|
||||
./build/qjs -qd
|
||||
- name: test
|
||||
run: |
|
||||
./build/qjs tests/test_bigint.js
|
||||
./build/qjs tests/test_closure.js
|
||||
./build/qjs tests/test_language.js
|
||||
./build/qjs tests/test_builtin.js
|
||||
./build/qjs tests/test_loop.js
|
||||
./build/qjs tests/test_std.js
|
||||
|
|
2
Makefile
2
Makefile
|
@ -402,6 +402,7 @@ test: qjs32
|
|||
endif
|
||||
|
||||
test: qjs
|
||||
./qjs tests/test_bigint.js
|
||||
./qjs tests/test_closure.js
|
||||
./qjs tests/test_language.js
|
||||
./qjs tests/test_builtin.js
|
||||
|
@ -416,7 +417,6 @@ ifndef CONFIG_DARWIN
|
|||
./qjs examples/test_point.js
|
||||
endif
|
||||
endif
|
||||
./qjs tests/test_bigint.js
|
||||
ifdef CONFIG_M32
|
||||
./qjs32 tests/test_closure.js
|
||||
./qjs32 tests/test_language.js
|
||||
|
|
Loading…
Reference in a new issue