From a86e27e8aee992e2b24dff8beac81b0473d6c81a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 9 Apr 2024 15:17:53 +0200 Subject: [PATCH] ci: verify build and install from tarball (#1362) Install verification based on: https://github.com/curl/curl/blob/28c5ddf13ac311d10bc4e8f9fc4ce0858a19b888/scripts/installcheck.sh --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8af2f60..efa1cb98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -209,11 +209,23 @@ jobs: export SOURCE_DATE_EPOCH=1707087580 ./configure --enable-werror --disable-debug ${{ matrix.options }} ./maketgz 99.98.97 + # Test reproducibility mkdir run1; mv ./libssh2-99.98.97.* run1/ make clean ./maketgz 99.98.97 - mkdir run2; mv ./libssh2-99.98.97.* run2/ + mkdir run2; cp -p ./libssh2-99.98.97.* run2/ diff run1 run2 + # Test build from tarball + tar -xvf libssh2-99.98.97.tar.gz + cd libssh2-99.98.97 + ./configure "--prefix=${HOME}/temp" --enable-werror --enable-debug \ + ${{ matrix.options }} + make -j3 install + cd .. + # Verify install + diff -u <(find docs -name '*.3' -printf '%f\n' | grep -v template | sort) <(find "${HOME}/temp/share/man/man3" -name '*.3' -printf '%f\n' | sort) + diff -u <(find include -name '*.h' -printf '%f\n' | sort) <(find "${HOME}/temp/include" -name '*.h' -printf '%f\n' | sort) + rm -rf libssh2-99.98.97 - name: 'cmake configure' if: ${{ matrix.build == 'cmake' }}