From: Vincent Bernat Date: Fri, 11 Mar 2022 21:57:51 +0000 (+0100) Subject: ci: only run distcheck if we are doing a release X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a165a6aea4719eecbf06c776dd7097b072f85f54;p=thirdparty%2Flldpd.git ci: only run distcheck if we are doing a release --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2add670c..86e704b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: run: ./tests/ci/run.sh env: LLDPD_CONFIG_ARGS: ${{ matrix.config-args }} + LLDPD_RELEASE: ${{ matrix.release }} CC: ${{ matrix.compiler }} - name: Generate release body if: matrix.release diff --git a/tests/ci/run.sh b/tests/ci/run.sh index 56b781b9..332fedac 100755 --- a/tests/ci/run.sh +++ b/tests/ci/run.sh @@ -32,6 +32,10 @@ make check ${MAKE_ARGS-CFLAGS=-Werror} || { [ ! -f tests/test-suite.log ] || cat tests/test-suite.log exit 1 } +if [ "$LLDPD_RELEASE" = "true" ]; then + make distcheck +fi + case "$(uname -s)" in Darwin) @@ -40,8 +44,6 @@ case "$(uname -s)" in otool -l osx/lldpd*/usr/local/sbin/lldpd ;; Linux) - make distcheck - # Integration tests cd tests/integration sudo $(which python3) -m pytest -n 5 -vv --boxed || \