test: extend address sanitizer testcases #778
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
pull_request: | |
jobs: | |
testing: | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
BUILDTYPE: [Debug, Release] | |
LIBLUA: | |
- "5.4" | |
- "5.3" | |
- "5.2" | |
- "5.1" | |
- "luajit-v2.1" | |
include: | |
- BUILDTYPE: Debug | |
CMAKEFLAGS: -DCMAKE_BUILD_TYPE=Debug | |
- BUILDTYPE: Release | |
CMAKEFLAGS: -DCMAKE_BUILD_TYPE=RelWithDebInfo | |
- LIBLUA: "5.4" | |
PACKAGES: lua5.4 liblua5.4-dev | |
- LIBLUA: "5.3" | |
PACKAGES: lua5.3 liblua5.3-dev | |
- LIBLUA: "5.2" | |
PACKAGES: lua5.2 liblua5.2-dev | |
- LIBLUA: "5.1" | |
PACKAGES: lua5.1 liblua5.1-0-dev | |
- LIBLUA: "luajit-v2.1" | |
PACKAGES: libluajit-5.1-dev libluajit-5.1-2 luajit | |
FLAVORFLAGS: -DLUAJIT_FRIENDLY_MODE=ON -DENABLE_LUAJIT=ON | |
fail-fast: false | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup common packages | |
run: sudo apt install -y clang-15 libclang-common-15-dev ${{ matrix.PACKAGES }} | |
- name: Running CMake | |
run: > | |
cmake -S . -B build -G Ninja -DENABLE_TESTING=ON | |
-DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15 | |
${{ matrix.CMAKEFLAGS }} ${{ matrix.FLAVORFLAGS }} | |
- name: Building | |
run: cmake --build build --parallel $(nproc) | |
- name: Testing | |
run: cmake --build build --target test | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 |