Skip to content

Commit

Permalink
Test Debug and Release CMake build types on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 12, 2023
1 parent 1e3893d commit 49134bb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
41 changes: 38 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,31 @@ 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
- 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
macos:
runs-on: macos-latest
Expand Down Expand Up @@ -93,18 +106,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 +172,7 @@ jobs:
strategy:
fail-fast: false
matrix:
buildType: [Debug, Release]
sys:
- mingw64
- ucrt64
Expand All @@ -171,9 +198,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

0 comments on commit 49134bb

Please sign in to comment.