smtp: fix glibcxx assertion failure with zero-length EHLO hostname #780
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # YAML can't do tabs, how silly | |
| name: Compilation test | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| # Github.com breaks "ubuntu-latest" every now and then: | |
| # (echo we are going to change latest from 22 to 24; exit 1) | |
| # Stupid! We know it's a moving target. | |
| # | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: install-deps | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: autoconf automake autotools-dev binutils cmake g++ gettext libbfio-dev libcurl4-openssl-dev libfmt-dev libgnutls28-dev libgsasl-dev libjsoncpp-dev libkrb5-dev libldap2-dev libmariadb-dev libpam0g-dev libolecf-dev libpff-dev libsqlite3-dev libssl-dev libtinyxml2-dev libtool libxml2-dev libxxhash-dev libzstd-dev make m4 openssl php-dev pkg-config sed systemd uuid-dev zlib1g-dev | |
| version: 1.3 | |
| - name: clone-gromox | |
| uses: actions/checkout@v3 | |
| - name: clone-vmime | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: grommunio/wmime | |
| path: vmime | |
| - name: clone-libHX | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: jengelh/libHX | |
| path: libHX | |
| - name: buildall | |
| run: | | |
| set -e | |
| cd vmime && cmake . -DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail" -DVMIME_BUILD_SAMPLES:BOOL=OFF -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF && make "-j$(nproc)" && sudo make install && cd - | |
| cd libHX && ./qconf && make "-j$(nproc)" && sudo make install && cd - | |
| ./qconf | |
| LD_LIBRARY_PATH=/usr/local/lib make "-j$(nproc)" | |
| LD_LIBRARY_PATH=/usr/local/lib make install DESTDIR="$PWD/rt" && rm -Rf rt | |
| make clean | |
| LD_LIBRARY_PATH=/usr/local/lib make "-j$(nproc)" CPPFLAGS="-DCOMPILE_DIAG -D_GLIBCXX_DEBUG" | |
| make distclean |