]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
ci: only run distcheck if we are doing a release
authorVincent Bernat <vincent@bernat.ch>
Fri, 11 Mar 2022 21:57:51 +0000 (22:57 +0100)
committerVincent Bernat <vincent@bernat.ch>
Fri, 11 Mar 2022 22:14:15 +0000 (23:14 +0100)
.github/workflows/ci.yml
tests/ci/run.sh

index 2add670c7a653fad337030c19d7ff1ad1495fb15..86e704b38d661fb5dd937d205c65b6b17c74691a 100644 (file)
@@ -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
index 56b781b9cdd55cc6aa860e0f5d6d3b5bccdf4b34..332fedac995d4417b6eb2c217c3debf2ba5108d8 100755 (executable)
@@ -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 || \