Skip to content

Commit 323b5a3

Browse files
committed
ci: Add support for Fedora 41
1 parent 3ca5986 commit 323b5a3

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

.github/workflows/ci.yml

+87
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,51 @@
254254
},
255255
],
256256
},
257+
"build-f41": {
258+
"name": "Build Fedora 41 package",
259+
"container": "fedora:41",
260+
"runs-on": "ubuntu-latest",
261+
"needs": [
262+
"check",
263+
],
264+
"steps": [
265+
{
266+
"name": "Restore workspace",
267+
"uses": "actions/download-artifact@v4",
268+
"with": {
269+
"name": "workspace",
270+
},
271+
},
272+
{
273+
"name": "Install build dependencies",
274+
"run": "bash $SCRIPTS/pkg-fedora.sh install",
275+
},
276+
{
277+
"name": "Build package",
278+
"run": "bash $SCRIPTS/pkg-fedora.sh build",
279+
},
280+
{
281+
"name": "Sign package",
282+
"env": {
283+
"GPG_KEY_ID": "56C464BAAC421453",
284+
"GPG_KEY": "${{ secrets.LINUX_SURFACE_GPG_KEY }}",
285+
},
286+
"run": "bash $SCRIPTS/pkg-fedora.sh sign",
287+
},
288+
{
289+
"name": "Prepare release",
290+
"run": "bash $SCRIPTS/pkg-fedora.sh release",
291+
},
292+
{
293+
"name": "Upload artifacts",
294+
"uses": "actions/upload-artifact@v4",
295+
"with": {
296+
"name": "fedora-41-latest",
297+
"path": "release",
298+
},
299+
},
300+
],
301+
},
257302
"release": {
258303
"name": "Publish release",
259304
"if": "github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')",
@@ -262,6 +307,7 @@
262307
"build-deb",
263308
"build-f39",
264309
"build-f40",
310+
"build-f41",
265311
],
266312
"runs-on": "ubuntu-latest",
267313
"steps": [
@@ -297,6 +343,14 @@
297343
"path": "fedora-40-latest",
298344
},
299345
},
346+
{
347+
"name": "Download Fedora 41 artifacts",
348+
"uses": "actions/download-artifact@v4",
349+
"with": {
350+
"name": "fedora-41-latest",
351+
"path": "fedora-41-latest",
352+
},
353+
},
300354
{
301355
"name": "Upload assets",
302356
"uses": "svenstaro/upload-release-action@v2",
@@ -442,5 +496,38 @@
442496
},
443497
],
444498
},
499+
"repo-f41": {
500+
"name": "Update Fedora 41 package repository",
501+
"container": "fedora:41",
502+
"runs-on": "ubuntu-latest",
503+
"needs": [
504+
"release",
505+
],
506+
"steps": [
507+
{
508+
"name": "Restore workspace",
509+
"uses": "actions/download-artifact@v4",
510+
"with": {
511+
"name": "workspace",
512+
},
513+
},
514+
{
515+
"name": "Download artifacts",
516+
"uses": "actions/download-artifact@v4",
517+
"with": {
518+
"name": "fedora-41-latest",
519+
"path": "fedora-41-latest",
520+
},
521+
},
522+
{
523+
"name": "Update repository",
524+
"env": {
525+
"SURFACEBOT_TOKEN": "${{ secrets.LINUX_SURFACE_BOT_TOKEN }}",
526+
"GIT_REF": "${{ github.ref }}",
527+
},
528+
"run": "bash $SCRIPTS/repo-fedora.sh $NAME 41",
529+
},
530+
],
531+
},
445532
},
446533
}

0 commit comments

Comments
 (0)