Private
Public Access
1
0

Fix build-rpm: set up proper rpmbuild directory structure with source tarball

This commit is contained in:
2026-04-12 21:23:48 +00:00
parent 7d0021ae3e
commit e9b7f78423

View File

@ -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