pika-kernel-manager/.github/workflows/build-fc40.yml

30 lines
942 B
YAML
Raw Normal View History

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