Updated Fedora build CI
Some checks failed
Build and Release CI / release-ci (push) Has been cancelled
Build and Release CI / build-fedora (push) Has been cancelled

This commit is contained in:
Christian Tosta
2025-04-18 14:49:45 -03:00
parent 52b949232f
commit e82c47bd49

View File

@@ -7,7 +7,7 @@ on:
required: true required: true
type: string type: string
version: version:
required: true required: false
type: string type: string
jobs: jobs:
@@ -45,15 +45,14 @@ jobs:
- name: Set environment variables - name: Set environment variables
run: | run: |
# echo "PKG_VERSION=$(cat build/version)" >> $GITHUB_ENV echo "PKG_VERSION=$(cat build/version)" >> $GITHUB_ENV
echo "PKG_NAME=$(grep -Po 'Name:\ *\K[\S ]*' \ echo "PKG_NAME=$(grep -Po 'Name:\ *\K[\S ]*' \
packaging/pkg.spec.in)" >> $GITHUB_ENV packaging/pkg.spec.in)" >> $GITHUB_ENV
- name: Copy SOURCES and SPEC file - name: Copy SOURCES and SPEC file
run: | run: |
cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec
# rpmdev-bumpspec -n ${PKG_VERSION} ~/rpmbuild/SPECS/${PKG_NAME}.spec rpmdev-bumpspec -n ${PKG_VERSION} ~/rpmbuild/SPECS/${PKG_NAME}.spec
rpmdev-bumpspec -n ${{ inputs.version }} ~/rpmbuild/SPECS/${PKG_NAME}.spec
cp dist/*.src.tar.gz ~/rpmbuild/SOURCES/ cp dist/*.src.tar.gz ~/rpmbuild/SOURCES/
- name: Build RPM packages - name: Build RPM packages