Skip to content

Commit 28139f9

Browse files
committed
ci: Add support for Fedora 42
1 parent 5d2b6e5 commit 28139f9

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.github/workflows/ci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,55 @@
242242
},
243243
],
244244
},
245+
"build-f42": {
246+
"name": "Build Fedora 42 package",
247+
"container": "fedora:42",
248+
"runs-on": "ubuntu-latest",
249+
"needs": [
250+
"check",
251+
],
252+
"steps": [
253+
{
254+
"name": "Install git",
255+
"run": "dnf install -y git",
256+
},
257+
{
258+
"name": "Checkout code",
259+
"uses": "actions/checkout@v4",
260+
"with": {
261+
"fetch-depth": 0,
262+
},
263+
},
264+
{
265+
"name": "Install build dependencies",
266+
"run": "bash $SCRIPTS/pkg-fedora.sh install",
267+
},
268+
{
269+
"name": "Build package",
270+
"run": "bash $SCRIPTS/pkg-fedora.sh build",
271+
},
272+
{
273+
"name": "Sign package",
274+
"env": {
275+
"GPG_KEY_ID": "56C464BAAC421453",
276+
"GPG_KEY": "${{ secrets.LINUX_SURFACE_GPG_KEY }}",
277+
},
278+
"run": "bash $SCRIPTS/pkg-fedora.sh sign",
279+
},
280+
{
281+
"name": "Prepare release",
282+
"run": "bash $SCRIPTS/pkg-fedora.sh release",
283+
},
284+
{
285+
"name": "Upload artifacts",
286+
"uses": "actions/upload-artifact@v4",
287+
"with": {
288+
"name": "fedora-42-latest",
289+
"path": "release",
290+
},
291+
},
292+
],
293+
},
245294
"release": {
246295
"name": "Publish release",
247296
"if": "github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')",
@@ -250,6 +299,7 @@
250299
"build-deb",
251300
"build-f40",
252301
"build-f41",
302+
"build-f42",
253303
],
254304
"runs-on": "ubuntu-latest",
255305
"steps": [
@@ -285,6 +335,14 @@
285335
"path": "fedora-41-latest",
286336
},
287337
},
338+
{
339+
"name": "Download Fedora 42 artifacts",
340+
"uses": "actions/download-artifact@v4",
341+
"with": {
342+
"name": "fedora-42-latest",
343+
"path": "fedora-42-latest",
344+
},
345+
},
288346
{
289347
"name": "Upload assets",
290348
"uses": "svenstaro/upload-release-action@v2",
@@ -438,5 +496,42 @@
438496
},
439497
],
440498
},
499+
"repo-f42": {
500+
"name": "Update Fedora 42 package repository",
501+
"container": "fedora:42",
502+
"runs-on": "ubuntu-latest",
503+
"needs": [
504+
"release",
505+
],
506+
"steps": [
507+
{
508+
"name": "Install git",
509+
"run": "dnf install -y git",
510+
},
511+
{
512+
"name": "Checkout code",
513+
"uses": "actions/checkout@v4",
514+
"with": {
515+
"fetch-depth": 0,
516+
},
517+
},
518+
{
519+
"name": "Download artifacts",
520+
"uses": "actions/download-artifact@v4",
521+
"with": {
522+
"name": "fedora-42-latest",
523+
"path": "fedora-42-latest",
524+
},
525+
},
526+
{
527+
"name": "Update repository",
528+
"env": {
529+
"SURFACEBOT_TOKEN": "${{ secrets.LINUX_SURFACE_BOT_TOKEN }}",
530+
"GIT_REF": "${{ github.ref }}",
531+
},
532+
"run": "bash $SCRIPTS/repo-fedora.sh $NAME 42",
533+
},
534+
],
535+
},
441536
},
442537
}

0 commit comments

Comments
 (0)