Skip to content

Commit 850f0a5

Browse files
committed
ci(ppa): synthesise orig tarball for 3.0 (quilt) format
1 parent eefbfcc commit 850f0a5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ppa-publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ jobs:
115115
"Release ${VERSION} for ${SERIES}."
116116
head -n 5 debian/changelog
117117
118+
- name: Create upstream orig tarball
119+
run: |
120+
set -eu
121+
# 3.0 (quilt) source format requires ../rdmatop_<upstream>.orig.tar.gz.
122+
# We synthesise one from the current source tree (which already
123+
# contains vendor/ and .cargo/ — Launchpad's builders need both for
124+
# offline cargo builds). debian/ and VCS metadata are excluded.
125+
PKG_DIR="rdmatop-${VERSION}"
126+
mkdir -p "/tmp/${PKG_DIR}"
127+
rsync -a \
128+
--exclude='.git' \
129+
--exclude='.github' \
130+
--exclude='debian' \
131+
--exclude='.cargo-home' \
132+
--exclude='target' \
133+
--exclude='out' \
134+
./ "/tmp/${PKG_DIR}/"
135+
tar -czf "../rdmatop_${VERSION}.orig.tar.gz" -C /tmp "${PKG_DIR}"
136+
rm -rf "/tmp/${PKG_DIR}"
137+
ls -la ../rdmatop_*.orig.tar.gz
138+
118139
- name: Build source package
119140
run: |
120141
set -eu

0 commit comments

Comments
 (0)