From e9b7f7842349453c019c690518b7e487addc1329 Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 12 Apr 2026 21:23:48 +0000 Subject: [PATCH] Fix build-rpm: set up proper rpmbuild directory structure with source tarball --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1abcae..4d48ec3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,12 @@ jobs: apt-get install -y rpm cargo rustc libsystemd-dev pkg-config - name: Build RPM package run: | - rpmbuild -ba linux-patch-api.spec + mkdir -p ~/rpmbuild/{SPECS,SOURCES,BUILD,RPMS,SRPMS} + cp linux-patch-api.spec ~/rpmbuild/SPECS/ + tar -czf ~/rpmbuild/SOURCES/linux-patch-api.tar.gz \ + Cargo.toml Cargo.lock src/ configs/ debian/ \ + linux-patch-api.spec build-rpm.sh + rpmbuild -ba ~/rpmbuild/SPECS/linux-patch-api.spec - name: Upload to releases (on tag) if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1