25 - '.github/workflows/linux.yml'
47 - '.github/workflows/linux.yml'
53 runs-on: ${{ matrix.os }}
57 name: [linux-clang, linux-gcc]
68 - name: Clone repository
69 uses: actions/checkout@v1
70 - name: Install packages
71 if: startsWith(matrix.os, 'ubuntu')
73 sudo apt-get update -qq
74 sudo apt-get install -y bison comerr-dev flex doxygen
75 sudo apt-get install -y libcap-ng-dev libdb-dev libedit-dev libjson-perl
76 sudo apt-get install -y libldap2-dev libncurses5-dev libperl4-corelibs-perl
77 sudo apt-get install -y libsqlite3-dev libkeyutils-dev pkg-config python3
78 sudo apt-get install -y ss-dev texinfo unzip netbase keyutils ldap-utils
79 sudo apt-get install -y gdb apport curl libmicrohttpd-dev jq valgrind
80 # Temporary workaround for:
81 # https://github.com/actions/virtual-environments/issues/3185
82 sudo hostname localhost
85 CC: ${{ matrix.compiler }}
86 MAKEVARS: ${{ matrix.makevars }}
91 ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode --enable-developer --with-ldap $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="${{ matrix.cflags }} -Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations"
95 CC: ${{ matrix.compiler }}
96 MAKEVARS: ${{ matrix.makevars }}
103 CC: ${{ matrix.compiler }}
104 MAKEVARS: ${{ matrix.makevars }}
107 make DESTDIR=/tmp/h5l install
109 tar czf $HOME/heimdal-install-linux-${{ matrix.compiler }}.tgz .
110 - name: Core dump stacks
112 echo "thread apply all bt" > /tmp/x
113 find . -name core -print | while read core; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done
114 if [ "$(find . -name core -print | wc -l)" -gt 0 ]; then false; fi
117 find build -depth -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | tar -czf $HOME/logs-linux-${{ matrix.compiler }}.tgz --verbatim-files-from --files-from -
118 find build -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | xargs cat
119 - name: Failed Test logs
122 find build -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | xargs cat
128 if [ "$(git ls-files -o|grep -v ^build/ | wc -l)" -ne 0 ]; then
129 echo "Files not removed by make distclean:"
130 git ls-files -o|grep -v ^build/
132 - name: Upload Install Tarball
133 uses: actions/upload-artifact@v2
135 name: Install Tarball
136 path: '~/heimdal-install-linux-${{ matrix.compiler }}.tgz'
137 - name: Upload Dist Tarball
138 uses: actions/upload-artifact@v2
141 path: 'build/heimdal-*.tar.gz'
142 - name: Upload Logs Tarball
143 uses: actions/upload-artifact@v2
146 path: '~/logs-linux-${{ matrix.compiler }}.tgz'