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: 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: Setup RPM Source run: tar -czf ./SOURCES/fedora-kernel-manager.tar.gz . --exclude=./SOURCES/fedora-kernel-manager.tar.gz - 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