Skip to content

Commit 3e82167

Browse files
cursoragentlovasoa
andcommitted
Checkpoint before follow-up message
Co-authored-by: contact <[email protected]>
1 parent e850038 commit 3e82167

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/packages.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,35 @@ jobs:
6363
# Build package (use -d to bypass build dependency checks since Rust is provided by CI)
6464
dpkg-buildpackage -us -uc -b -d
6565
66+
- name: Collect build artifacts
67+
run: |
68+
mkdir -p build-output
69+
mv ../*.deb build-output/ || true
70+
mv ../*.changes build-output/ || true
71+
mv ../*.buildinfo build-output/ || true
72+
ls -lh build-output/
73+
6674
- name: Run lintian checks
6775
run: |
68-
lintian --no-tag-display-limit ../*.deb || true
76+
lintian --no-tag-display-limit build-output/*.deb || true
6977
7078
- name: List package contents
7179
run: |
72-
dpkg-deb --contents ../*.deb
73-
dpkg-deb --info ../*.deb
80+
dpkg-deb --contents build-output/*.deb
81+
dpkg-deb --info build-output/*.deb
7482
7583
- name: Upload DEB package
7684
uses: actions/upload-artifact@v4
7785
with:
7886
name: debian-package
79-
path: ../*.deb
87+
path: build-output/*.deb
8088
if-no-files-found: error
8189

8290
- name: Upload DEB changes
8391
uses: actions/upload-artifact@v4
8492
with:
8593
name: debian-changes
86-
path: ../*.changes
94+
path: build-output/*.changes
8795
if-no-files-found: warn
8896

8997
build-rpm:
@@ -128,8 +136,10 @@ jobs:
128136
- name: Create source tarball
129137
run: |
130138
VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
131-
git archive --format=tar.gz --prefix="SQLPage-${VERSION}/" \
132-
-o ~/rpmbuild/SOURCES/sqlpage-${VERSION}.tar.gz HEAD
139+
RPM_VERSION=$(echo "$VERSION" | sed 's/-/~/')
140+
# Create tarball with version prefix matching spec file Source0
141+
git archive --format=tar.gz --prefix="SQLPage-${RPM_VERSION}/" \
142+
-o ~/rpmbuild/SOURCES/v${RPM_VERSION}.tar.gz HEAD
133143
134144
- name: Build RPM package
135145
run: |

0 commit comments

Comments
 (0)