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
|
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y UBSAN_OPTIONS="halt_on_error=1" test
|
||||||
linux-cmake:
|
linux-cmake:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
buildType: [Debug, Release]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} ..
|
||||||
cd ..
|
cd ..
|
||||||
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
||||||
- name: stats
|
- name: stats
|
||||||
run: |
|
run: |
|
||||||
./build/qjs -qd
|
./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:
|
macos:
|
||||||
runs-on: macos-latest
|
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
|
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y UBSAN_OPTIONS="halt_on_error=1" test
|
||||||
macos-cmake:
|
macos-cmake:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
buildType: [Debug, Release]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} ..
|
||||||
cd ..
|
cd ..
|
||||||
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
||||||
- name: stats
|
- name: stats
|
||||||
run: |
|
run: |
|
||||||
./build/qjs -qd
|
./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:
|
windows-mingw:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -146,6 +178,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
buildType: [Debug, Release]
|
||||||
sys:
|
sys:
|
||||||
- mingw64
|
- mingw64
|
||||||
- ucrt64
|
- ucrt64
|
||||||
|
@ -154,8 +187,6 @@ jobs:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Setup MSYS2
|
- name: Setup MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
|
@ -171,9 +202,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} ..
|
||||||
cd ..
|
cd ..
|
||||||
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
cmake --build build -j$(getconf _NPROCESSORS_ONLN)
|
||||||
- name: stats
|
- name: stats
|
||||||
run: |
|
run: |
|
||||||
./build/qjs -qd
|
./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
|
endif
|
||||||
|
|
||||||
test: qjs
|
test: qjs
|
||||||
|
./qjs tests/test_bigint.js
|
||||||
./qjs tests/test_closure.js
|
./qjs tests/test_closure.js
|
||||||
./qjs tests/test_language.js
|
./qjs tests/test_language.js
|
||||||
./qjs tests/test_builtin.js
|
./qjs tests/test_builtin.js
|
||||||
|
@ -416,7 +417,6 @@ ifndef CONFIG_DARWIN
|
||||||
./qjs examples/test_point.js
|
./qjs examples/test_point.js
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
./qjs tests/test_bigint.js
|
|
||||||
ifdef CONFIG_M32
|
ifdef CONFIG_M32
|
||||||
./qjs32 tests/test_closure.js
|
./qjs32 tests/test_closure.js
|
||||||
./qjs32 tests/test_language.js
|
./qjs32 tests/test_language.js
|
||||||
|
|
Loading…
Reference in a new issue