mirror of https://github.com/sipwise/libtcap.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
623 B
27 lines
623 B
name: Sanitizers
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
FLAGS: "-fsanitize=address -fsanitize=leak -fsanitize=undefined"
|
|
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Get build dependencies
|
|
run: |
|
|
# note: debhelper v13 isn't available from ubuntu-20.04 yet, we need a backport
|
|
sudo apt-add-repository -y ppa:ubuntu-cloud-archive/yoga-staging
|
|
sudo apt-get build-dep -q -y .
|
|
|
|
- name: Build with sanitizers enabled
|
|
run: |
|
|
CFLAGS="$FLAGS" LDFLAGS="$FLAGS" make test
|