make an rpm for my suse

ab5292d · gmorell · 2026-01-13 03:57

3 files +28 -0

Files changed

modified .github/workflows/rust-ci.yml
+28 −0
@@ -81,9 +81,15 @@ jobs:
81 81 - name: Install cargo-deb
82 82 run: cargo install cargo-deb
83 83
84 + - name: Install cargo-generate-rpm
85 + run: cargo install cargo-generate-rpm
86 +
84 87 - name: Build test Debian package
85 88 run: cargo deb --no-build --no-strip
86 89
90 + - name: Build RPM package
91 + run: cargo generate-rpm --no-build --output target/generate-rpm
92 +
87 93 - name: Upload test artifact
88 94 uses: actions/upload-artifact@v4
89 95 with:
@@ -96,6 +102,12 @@ jobs:
96 102 name: koco-test-${{ matrix.arch }}-linux.deb
97 103 path: target/debian/*.deb
98 104
105 + - name: Upload test RPM package
106 + uses: actions/upload-artifact@v4
107 + with:
108 + name: koco-test-${{ matrix.arch }}-linux.rpm
109 + path: target/generate-rpm/*.rpm
110 +
99 111
100 112 release:
101 113 name: Release
@@ -191,6 +203,14 @@ jobs:
191 203 if: runner.os == 'Linux'
192 204 run: cargo deb --no-build --no-strip
193 205
206 + - name: Install cargo-generate-rpm (Linux)
207 + if: runner.os == 'Linux'
208 + run: cargo install cargo-generate-rpm
209 +
210 + - name: Build RPM package (Linux)
211 + if: runner.os == 'Linux'
212 + run: cargo generate-rpm --no-build --output target/generate-rpm
213 +
194 214 - name: Upload release archive
195 215 uses: actions/upload-artifact@v4
196 216 with:
@@ -204,6 +224,13 @@ jobs:
204 224 name: koco-${{ matrix.os }}.deb
205 225 path: target/debian/*.deb
206 226
227 + - name: Upload RPM package
228 + if: runner.os == 'Linux'
229 + uses: actions/upload-artifact@v4
230 + with:
231 + name: koco-${{ matrix.os }}.rpm
232 + path: target/generate-rpm/*.rpm
233 +
207 234 create-release:
208 235 name: Create Release
209 236 runs-on: ubuntu-latest
@@ -246,6 +273,7 @@ jobs:
246 273 artifacts/*/*.tar.gz
247 274 artifacts/*/*.zip
248 275 artifacts/*/*.deb
276 + artifacts/*/*.rpm
249 277 body_path: release_notes.md
250 278 draft: false
251 279 prerelease: ${{ contains(github.ref_name, '-') }}

Parents: 765fbe2