Fix build-rpm: set up proper rpmbuild directory structure with source tarball
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user