From 7a490fe497645b6cc5cc872b197ffb41e278e0f8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 3 Nov 2023 10:14:15 +0900 Subject: [PATCH] ci: Check build without bittorrent --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c205a0c..d51fc84d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,9 +9,12 @@ jobs: os: [ubuntu-22.04, macos-11] compiler: [gcc, clang] crypto: [openssl, gnutls] + bittorrent: [with-bt, without-bt] exclude: - os: macos-11 crypto: gnutls + - crypto: openssl + bittorrent: without-bt runs-on: ${{ matrix.os }} @@ -73,14 +76,20 @@ jobs: echo 'CPPFLAGS='"$CPPFLAGS" >> $GITHUB_ENV echo 'LDFLAGS='"$LDFLAGS" >> $GITHUB_ENV + - name: Disable BitTorrent + if: matrix.bittorrent == 'without-bt' + run: | + FEATURE_FLAGS="$FEATURE_FLAGS --disable-bittorrent" + + echo 'FEATURE_FLAGS='"$FEATURE_FLAGS" >> $GITHUB_ENV - name: Configure autotools (Linux, gnutls) if: runner.os == 'Linux' && matrix.crypto == 'gnutls' run: | - ./configure --with-gnutls --without-openssl + ./configure --with-gnutls --without-openssl $FEATURE_FLAGS - name: Configure autotools (Linux, openssl) if: runner.os == 'Linux' && matrix.crypto == 'openssl' run: | - ./configure --without-gnutls --with-openssl + ./configure --without-gnutls --with-openssl $FEATURE_FLAGS - name: Configure autotools (macOS) if: runner.os == 'macOS' run: |