22 - '.github/workflows/build.yml'
44 - '.github/workflows/build.yml'
50 runs-on: ${{ matrix.os }}
54 name: [linux-clang, linux-gcc]
63 - name: Clone repository
64 uses: actions/checkout@v1
65 - name: Install packages
66 if: startsWith(matrix.os, 'ubuntu')
68 sudo apt-get update -qq
69 sudo apt-get install -y bison comerr-dev flex libcap-ng-dev libdb-dev libedit-dev libjson-perl libldap2-dev libncurses5-dev libperl4-corelibs-perl libsqlite3-dev libkeyutils-dev pkg-config python ss-dev texinfo unzip netbase keyutils ldap-utils gdb apport curl libmicrohttpd-dev jq valgrind
70 # Temporary workaround for:
71 # https://github.com/actions/virtual-environments/issues/3185
72 sudo hostname localhost
75 CC: ${{ matrix.compiler }}
76 MAKEVARS: ${{ matrix.makevars }}
77 CONFIGURE_OPTS: ${{ matrix.configureopts }}
82 ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode --enable-developer --with-ldap $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations"
87 - name: Valgrind output
89 find . -name \*.log -print0|xargs -0 grep '^==[1-9]' || true
90 - name: Core dump stacks
92 echo "thread apply all bt" > /tmp/x
93 find . -name core -print | while read core; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done
94 if [ "$(find . -name core -print | wc -l)" -gt 0 ]; then false; fi
98 find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat
103 if [ "$(git ls-files -o|grep -v ^build/ | wc -l)" -ne 0 ]; then
104 echo "Files not removed by make distclean:"
105 git ls-files -o|grep -v ^build/