summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-02-10 19:16:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-02-11 07:34:06 +1000
commit49f642f1667ea03451553e334044b85d3d6bd0d9 (patch)
tree1a7da7cf41ae97ab80b08c11201c20b0bd78fe39
parentd10d763d6c335b3c97fd9e7ddd71099e4f4d274e (diff)
downloadxf86-input-wacom-49f642f1667ea03451553e334044b85d3d6bd0d9.tar.gz
CI: add a job to check for missing files in the tarball
Anything in git should be in the tarball. Better to have a job for this explicitly rather than finding it out later, because debugging this is extremely frustrating. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--.github/workflows/build.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 9a91ac1..9cb1cd6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -160,3 +160,34 @@ jobs:
path: |
builddir/meson-logs/testlog*.txt
builddir/meson-logs/meson-log.txt
+
+ check-tarball-files:
+ needs: compile-with-autotools
+ runs-on: ubuntu-20.04
+ env:
+ TARBALLDIR: '_tarball_dir'
+ steps:
+ - name: Checkout the repo
+ uses: actions/checkout@v2
+ - name: fetch tarball from previous job(s)
+ uses: actions/download-artifact@v2
+ with:
+ name: tarball
+ - name: list git files
+ run: git ls-files | grep -v -e '.gitignore' -e '.github' -e '.editorconfig' -e 'release.sh' -e 'git-version-gen' > files-in-git.txt
+ - name: list tarball files
+ run: |
+ tar ft xf86-input-wacom-*.tar.bz2 | sed -e 's|^[^/]*/||' | sort > files-in-tarball.txt
+ - name: check for missing files
+ run: |
+ rm -f missing-files.txt
+ for filename in $(cat files-in-git.txt); do
+ if ! grep -q "$filename" files-in-tarball.txt; then
+ echo "$filename" >> missing-files.txt
+ fi
+ done
+ if [[ -e missing-files.txt ]]; then
+ echo "Files missing from tarball:"
+ cat missing-files.txt
+ exit 1
+ fi