diff options
| author | Tatsuhiro Tsujikawa <404610+tatsuhiro-t@users.noreply.github.com> | 2023-09-16 18:29:12 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-16 18:29:12 +0900 |
| commit | 42b98934632a956163058242a98a7cf19bd65ab0 (patch) | |
| tree | de559208ed1296d2bcc8cb1c71272ba8f9869191 | |
| parent | dbbd1bfbf97548d773e3e7954e6819880ef6bd57 (diff) | |
| parent | 81244a16dd4108d722c984c6fddfca80a64df80c (diff) | |
Merge pull request #2096 from aria2/ci-gnutls
ci: Build with gnutls
| -rw-r--r-- | .github/workflows/build.yml | 28 |
1 files 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 |
