Add a make dist CI test

Add a CI test to check that make dist builds a usable tarball.

Signed-off-by: Serge Hallyn <>
This commit is contained in:
Serge Hallyn 2023-08-04 09:59:56 -05:00
parent 95296dfd67
commit 4107c49ecd
1 changed files with 32 additions and 0 deletions

View File

@ -52,6 +52,38 @@ jobs:
sudo ./run_some
cat testsuite.log
# Make sure that 'make dist' makes a usable tarball with no missing files
runs-on: ubuntu-latest
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo cat /etc/apt/sources.list
sudo sed -i '/deb-src/d' /etc/apt/sources.list
sudo sed -i '/^deb /p;s/ /-src /' /etc/apt/sources.list
export DEBIAN_PRIORITY=critical
export DEBIAN_FRONTEND=noninteractive
# let's try to work around upgrade breakage in a pkg we don't care about
sudo apt-mark hold grub-efi-amd64-bin grub-efi-amd64-signed
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get -y install ubuntu-dev-tools automake autopoint xsltproc gettext expect byacc libtool libbsd-dev pkgconf
sudo apt-get -y build-dep shadow
- name: Test make dist
run: |
make dist
tar -zxf $f
d=$(basename $f .tar.gz)
cd $d
make -j5
runs-on: ubuntu-latest