Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Debug and Release CMake build types on CI #52

Merged
merged 3 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 44 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -146,6 +178,7 @@ jobs:
strategy:
fail-fast: false
matrix:
buildType: [Debug, Release]
sys:
- mingw64
- ucrt64
Expand All @@ -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:
Expand All @@ -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 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,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
Expand All @@ -414,7 +415,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
Expand Down