From 81244a16dd4108d722c984c6fddfca80a64df80c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 16 Sep 2023 16:42:46 +0900 Subject: [PATCH] ci: Build with gnutls --- .github/workflows/build.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c3c8b4f..27c428f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,10 @@ jobs: matrix: os: [ubuntu-22.04, macos-11] compiler: [gcc, clang] + crypto: [openssl, gnutls] + exclude: + - os: macos-11 + crypto: gnutls runs-on: ${{ matrix.os }} @@ -26,6 +30,7 @@ jobs: libtool \ pkg-config \ libssl-dev \ + libgnutls28-dev \ libc-ares-dev \ zlib1g-dev \ libsqlite3-dev \ @@ -59,18 +64,29 @@ jobs: - name: Libtool run: | autoreconf -i - - name: Configure autotools (Linux) - if: runner.os == 'Linux' + - name: Setup compiler flags run: | - ./configure \ - CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" + asanflags="-fsanitize=address,undefined -fno-sanitize-recover=undefined" + + CPPFLAGS="$asanflags -g3" + LDFLAGS="$asanflags" + + echo 'CPPFLAGS='"$CPPFLAGS" >> $GITHUB_ENV + echo 'LDFLAGS='"$LDFLAGS" >> $GITHUB_ENV + - name: Configure autotools (Linux, gnutls) + if: runner.os == 'Linux' && matrix.crypto == 'gnutls' + run: | + ./configure --with-gnutls --without-openssl + - name: Configure autotools (Linux, openssl) + if: runner.os == 'Linux' && matrix.crypto == 'openssl' + run: | + ./configure --without-gnutls --with-openssl - name: Configure autotools (macOS) if: runner.os == 'macOS' run: | ./configure \ --without-openssl --without-gnutls --with-appletls \ - --disable-nls \ - CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" + --disable-nls - name: Build aria2 run: | make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check