Skip to content

Commit

Permalink
fedora github action builder
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousEggroll committed Oct 12, 2024
1 parent cd0b27e commit 351b382
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-umu-fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build RPM

on:
push:
branches: [ "fedora-rpm-builder" ]
pull_request:
branches: [ "fedora-rpm-builder" ]

jobs:
build:
runs-on: ubuntu-latest
container:
image: fedora:latest

steps:
- name: Install Git
run: dnf install -y git

- name: Checkout repository
uses: actions/checkout@v3

- name: Configure Git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Install build dependencies
run: dnf install -y rpm-build ninja-build gcc-c++ python3-devel python3-build python3-installer python3-hatchling

- name: Build the project
run: |
./configure.sh --prefix=/usr
make
mkdir -p ~/rpmbuild/SOURCES
cp -r . ~/rpmbuild/SOURCES/umu-launcher
rpmbuild -ba packaging/rpm/umu-launcher.spec
- name: Upload RPM
uses: actions/[email protected]
with:
name: umu-launcher-rpm
path: ~/rpmbuild/RPMS/noarch/*.rpm

0 comments on commit 351b382

Please sign in to comment.