ci: Build with gnutls

pull/2096/head
Tatsuhiro Tsujikawa 2023-09-16 16:42:46 +09:00
parent dbbd1bfbf9
commit 81244a16dd
1 changed files with 22 additions and 6 deletions

View File

@ -8,6 +8,10 @@ jobs:
matrix: matrix:
os: [ubuntu-22.04, macos-11] os: [ubuntu-22.04, macos-11]
compiler: [gcc, clang] compiler: [gcc, clang]
crypto: [openssl, gnutls]
exclude:
- os: macos-11
crypto: gnutls
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -26,6 +30,7 @@ jobs:
libtool \ libtool \
pkg-config \ pkg-config \
libssl-dev \ libssl-dev \
libgnutls28-dev \
libc-ares-dev \ libc-ares-dev \
zlib1g-dev \ zlib1g-dev \
libsqlite3-dev \ libsqlite3-dev \
@ -59,18 +64,29 @@ jobs:
- name: Libtool - name: Libtool
run: | run: |
autoreconf -i autoreconf -i
- name: Configure autotools (Linux) - name: Setup compiler flags
if: runner.os == 'Linux'
run: | run: |
./configure \ asanflags="-fsanitize=address,undefined -fno-sanitize-recover=undefined"
CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
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) - name: Configure autotools (macOS)
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: | run: |
./configure \ ./configure \
--without-openssl --without-gnutls --with-appletls \ --without-openssl --without-gnutls --with-appletls \
--disable-nls \ --disable-nls
CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
- name: Build aria2 - name: Build aria2
run: | run: |
make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check