ci: add rpm package

This commit is contained in:
iff 2024-12-14 20:11:04 +01:00
parent 834eae11dd
commit 4a596818d9
2 changed files with 18 additions and 2 deletions

View file

@ -22,17 +22,21 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
deb: true
rpm: true
- os: ubuntu-latest
target: i686-unknown-linux-gnu
deb: true
rpm: true
cross: true
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
deb: true
rpm: true
cross: true
- os: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
deb: true
rpm: true
cross: true
- os: ubuntu-latest
target: aarch64-linux-android
@ -81,9 +85,14 @@ jobs:
if: ${{ matrix.deb == true }}
run: |
cargo install cargo-deb --locked
cp LICENSE target/${{ matrix.target }}/release
cargo deb -p pay-respects --no-build --no-strip --output . --target ${{ matrix.target }}
- name: package rpm
if: ${{ matrix.rpm == true }}
run: |
cargo install cargo-generate-rpm --locked
cargo rpm -p pay-respects -o . --target ${{ matrix.target }}
- name: zipping files (unix)
if: runner.os != 'Windows'
run: >
@ -110,6 +119,7 @@ jobs:
*.tar.zst
*.zip
*.deb
*.rpm
allowUpdates: true
makeLatest: true