pika-kernel-manager/.github/workflows/build-fc40.yml
Ward Nakchbandi (Cosmic Fusion) b20562e8dc
Update build-fc40.yml
2024-06-22 23:33:32 +03:00

30 lines
936 B
YAML

name: RPM Build (Fedora 40)
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
container:
image: fedora:40
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v2
- name: Setup RPM Source
run: mkdir -p ./SOURCES && tar -pczf ./SOURCES/fedora-kernel-manager.tar.gz --exclude="$(basename "$PWD")/SOURCES/fedora-kernel-manager.tar.gz" $(basename "$PWD")
- name: Get RPM Spec BuildRequires
run: dnf install wget cpio mock tar pykickstart fedpkg libvirt fedora-packager rpmdevtools 'dnf-command(builddep)' -y && dnf builddep fedora-kernel-manager.spec -y
- name: Build RPM package
run: rpmbuild -bb fedora-kernel-manager.spec --define "_rpmdir $(pwd)/packages" --define "_topdir $(pwd)/"
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Binary RPM
path: packages/*.rpm