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 83fda81
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,29 @@ 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_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
macos:
runs-on: macos-latest
Expand Down Expand Up @@ -93,18 +104,29 @@ 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_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
windows-mingw:
runs-on: windows-latest
Expand Down Expand Up @@ -146,6 +168,7 @@ jobs:
strategy:
fail-fast: false
matrix:
buildType: [Debug, Release]
sys:
- mingw64
- ucrt64
Expand All @@ -171,9 +194,16 @@ 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_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

0 comments on commit 83fda81

Please sign in to comment.