Skip to content

ci: add meson build/tests with sanitizers #5

ci: add meson build/tests with sanitizers

ci: add meson build/tests with sanitizers #5

Workflow file for this run

name: "CMake CI"
on:
pull_request:
push:
jobs:
cmake-build:
runs-on: ubuntu-latest
env:
CFLAGS: -DSTC_STATIC -Wall -Wno-unused-function -ggdb3 -fsanitize=address -fsanitize=undefined -fsanitize=pointer-compare -fsanitize=pointer-subtract
CXXFLAGS: -DSTC_STATIC -Wall -Wno-unused-function -ggdb3 -fsanitize=address -fsanitize=undefined -fsanitize=pointer-compare -fsanitize=pointer-subtract
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Build & Test'
uses: ashutoshvarma/action-cmake-build@master
with:
cc: gcc
cxx: g++
build-type: Release
configure-options: -DBUILD_TESTING=1
ctest-options: --output-on-failure
run-test: true