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

27 lines
738 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 21:23:09 +02:00
- name: Get RPM Spec BuildRequires
2024-06-22 21:27:12 +02:00
run: dnf install wget cpio mock 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 21:32:28 +02:00
run: rpmbuild -bb fedora-kernel-manager.spec --define "_rpmdir $(pwd)/packages" --undefine=_disable_source_fetch
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