Skip to content

Commit 2743514

Browse files
Kishi85moepman
authored andcommitted
Update github action workflow to build debian packages with gzip format for older OS versions
1 parent f78cb5c commit 2743514

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ jobs:
4141
echo "suggests3=$(python3 -c "from setup import extra_requirements; print('\n'.join(['\n'.join(x) for x in extra_requirements.values()]))" | grep -v cryptography | sed 's/PyYAML/yaml/gi' | awk '{ printf("python3-%s, ",$1)};' | awk '{$1=$1; print}')" >> $GITHUB_OUTPUT
4242
4343
- name: Build debian package using setuptools and stdeb
44-
run: python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=False --with-python3=True --recommends3="${{ steps.stdebprep.outputs.recommends3 }}" --suggests3="${{ steps.stdebprep.outputs.suggests3 }}" bdist_deb
44+
run: |
45+
# Create debianized source directory
46+
python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=False --with-python3=True --recommends3="${{ steps.stdebprep.outputs.recommends3 }}" --suggests3="${{ steps.stdebprep.outputs.suggests3 }}"
47+
# Enter debianzied source directory (first sub-directory under deb_dist)
48+
cd "$(find deb_dist -maxdepth 1 -type d | grep -v 'deb_dist$\|tmp_sdist_dsc' | head -n1)"
49+
# Enforce GZIP compressed debian package info for older OS versions
50+
echo -e 'override_dh_builddeb:\n\tdh_builddeb -- -Zgzip\n' >> debian/rules
51+
# Build deb package
52+
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -uc -us
4553
4654
- name: Create a changelog from git log since last non-pre/rc tag
4755
run: |

0 commit comments

Comments
 (0)