Skip to content
Open
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
39 changes: 27 additions & 12 deletions .github/workflows/build-test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@

name: Build+Test CI

on:
push:
branches:
- master
tags:
- v*
pull_request:
types:
- opened
branches:
- master
on: [pull_request, push]

jobs:
make-check-ubuntu-x64:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
cc:
- gcc
- clang
sanitizer:
- none
- asan
- ubsan
features:
- --enable-qmanifest --enable-qtegrity
- --disable-qmanifest --enable-qtegrity
Expand All @@ -33,6 +28,8 @@ jobs:
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
ASAN_OPTIONS: "detect_leaks=0" # TODO: poke at leaks in atom_explode/dotest
SANITIZER: ${{ matrix.sanitizer }}
steps:
- name: install deps
run: >
Expand All @@ -45,7 +42,25 @@ jobs:
--disable-maintainer-mode --disable-openmp
${{ matrix.features }}
- name: make variant ${{ matrix.features }}
run: make CFLAGS="-O3 -Wall -Wshadow -pipe" V=1 check
run: >
export CFLAGS="-O3 -Wall -Wshadow -pipe"
export ASAN_OPTIONS="${ASAN_OPTIONS}:halt_on_error=1:abort_on_error=1:print_summary=1"
export UBSAN_OPTIONS="${UBSAN_OPTIONS}:halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1"

case "$SANITIZER" in
none)
;;
asan)
export CFLAGS="${CFLAGS} -ggdb3 -fsanitize=address"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it useful to use -O3 here? do we get useful stacks and analysis this way? For valgrind we also run with -g -pipe to get understandable complaints

export LDFLAGS="-fsanitize=address"
;;
ubsan)
export CFLAGS="${CFLAGS} -ggdb3 -fsanitize=undefined"
export LDFLAGS="-fsanitize=undefined"
;;
esac

make CFLAGS="${CFLAGS}" V=1 check

# I'm too tired for now to make it work
# make-check-macos-x64:
Expand Down