Skip to content

Commit

Permalink
ci: Add support for Fedora 41
Browse files Browse the repository at this point in the history
  • Loading branch information
StollD committed Sep 14, 2024
1 parent 3ca5986 commit 323b5a3
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,51 @@
},
],
},
"build-f41": {
"name": "Build Fedora 41 package",
"container": "fedora:41",
"runs-on": "ubuntu-latest",
"needs": [
"check",
],
"steps": [
{
"name": "Restore workspace",
"uses": "actions/download-artifact@v4",
"with": {
"name": "workspace",
},
},
{
"name": "Install build dependencies",
"run": "bash $SCRIPTS/pkg-fedora.sh install",
},
{
"name": "Build package",
"run": "bash $SCRIPTS/pkg-fedora.sh build",
},
{
"name": "Sign package",
"env": {
"GPG_KEY_ID": "56C464BAAC421453",
"GPG_KEY": "${{ secrets.LINUX_SURFACE_GPG_KEY }}",
},
"run": "bash $SCRIPTS/pkg-fedora.sh sign",
},
{
"name": "Prepare release",
"run": "bash $SCRIPTS/pkg-fedora.sh release",
},
{
"name": "Upload artifacts",
"uses": "actions/upload-artifact@v4",
"with": {
"name": "fedora-41-latest",
"path": "release",
},
},
],
},
"release": {
"name": "Publish release",
"if": "github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')",
Expand All @@ -262,6 +307,7 @@
"build-deb",
"build-f39",
"build-f40",
"build-f41",
],
"runs-on": "ubuntu-latest",
"steps": [
Expand Down Expand Up @@ -297,6 +343,14 @@
"path": "fedora-40-latest",
},
},
{
"name": "Download Fedora 41 artifacts",
"uses": "actions/download-artifact@v4",
"with": {
"name": "fedora-41-latest",
"path": "fedora-41-latest",
},
},
{
"name": "Upload assets",
"uses": "svenstaro/upload-release-action@v2",
Expand Down Expand Up @@ -442,5 +496,38 @@
},
],
},
"repo-f41": {
"name": "Update Fedora 41 package repository",
"container": "fedora:41",
"runs-on": "ubuntu-latest",
"needs": [
"release",
],
"steps": [
{
"name": "Restore workspace",
"uses": "actions/download-artifact@v4",
"with": {
"name": "workspace",
},
},
{
"name": "Download artifacts",
"uses": "actions/download-artifact@v4",
"with": {
"name": "fedora-41-latest",
"path": "fedora-41-latest",
},
},
{
"name": "Update repository",
"env": {
"SURFACEBOT_TOKEN": "${{ secrets.LINUX_SURFACE_BOT_TOKEN }}",
"GIT_REF": "${{ github.ref }}",
},
"run": "bash $SCRIPTS/repo-fedora.sh $NAME 41",
},
],
},
},
}

0 comments on commit 323b5a3

Please sign in to comment.