Created action and added some information to README.md

This commit is contained in:
2025-11-20 14:45:15 -05:00
parent 42e86bd3f0
commit bbd3ec0069
2 changed files with 39 additions and 0 deletions

View File

@@ -1,2 +1,5 @@
# build-rpm
A gitea action to build rpm with a given spec file.
Requires toolbox and its dependencies.

36
action.yml Normal file
View File

@@ -0,0 +1,36 @@
name: Build RPM
description: "Builds rpm for given spec file"
inputs:
spec-file-path:
description: "Path to spec file for rpm"
required: true
runs:
using: "composite"
steps:
- name: Setup toolbox environment
shell: bash
run: |
toolbox run sudo dnf -y rpmdevtools
toolbox run rpmdev-setuptree
- name: Install Dependencies
env:
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
shell: bash
run: |
toolbox run sudo dnf -y builddep $SPEC_FILE_PATH
- name: Download Source
env:
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
shell: bash
run: |
toolbox run rpmdev-spectool -g -C ~/rpmbuild/SOURCES $SPEC_FILE_PATH
- name: Build packages
env:
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
shell: bash
run: |
toolbox run rpmbuild --nodebuginfo --bb $SPEC_FILE_PATH