Opt to use docker and dockerfiles to build instead

This commit is contained in:
2025-11-27 14:16:20 -05:00
parent bbd3ec0069
commit 4d585d46fc
3 changed files with 17 additions and 28 deletions

View File

@@ -6,31 +6,7 @@ inputs:
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
using: "docker"
image: "Dockerfile"
args:
- ${{ input.spec-file-path }}