Remove rpm-build workflows

This commit is contained in:
Christian Tosta
2025-07-15 05:07:53 -03:00
parent 026ee513c1
commit 2503ccb99d
2 changed files with 5 additions and 82 deletions

View File

@@ -8,9 +8,6 @@ on:
jobs:
release-ci:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_metadata.outputs.tag }}
to_release: ${{ steps.newtag.outputs.to_release }}
steps:
- name: Local checkout
@@ -51,10 +48,8 @@ jobs:
&& git push origin ${{ steps.get_metadata.outputs.tag }} \
|| exit 0
build-fedora:
needs: release-ci
uses: ./.github/workflows/fedora.yml
- name: Create and publish GitHub release
if: steps.newtag.outputs.to_release == 1
uses: softprops/action-gh-release@v2
with:
containers: "['fedora:latest', 'fedora:41']"
to_release: ${{ needs.release-ci.outputs.to_release }}
tag: ${{ needs.release-ci.outputs.tag }}
tag_name: ${{ steps.get_metadata.outputs.tag }}

View File

@@ -1,72 +0,0 @@
on:
workflow_call:
inputs:
containers:
default: "['fedora:latest']"
required: false
type: string
tag:
required: true
type: string
to_release:
default: "0"
required: false
type: string
defaults:
run:
shell: bash
jobs:
build:
strategy:
max-parallel: 2
matrix:
image: ${{ fromJson(inputs.containers) }}
runs-on: ubuntu-latest
container: ${{ matrix.image }}
steps:
- name: Prepare - local checkout
uses: actions/checkout@v4
- name: Prepare - install build dependencies
if: inputs.to_release == 1
run: |
dnf -y install \
cmake \
gcc \
gcc-c++ \
git \
openssl \
rpm-build \
rpmdevtools \
tar
- name: Prepare - setup RPM build tree
if: inputs.to_release == 1
run: |
rpmdev-setuptree
- name: Prepare - configure the source
if: inputs.to_release == 1
run: |
cmake -B $(pwd)/build -S $(pwd)
- name: Build - create source tarball and SRPM package
if: inputs.to_release == 1
run: |
cmake --build $(pwd)/build --target srpm
- name: Build - create RPM package
if: inputs.to_release == 1
run: |
cmake --build $(pwd)/build --target rpms
- name: Publish - create GitHub release
uses: softprops/action-gh-release@v2
if: inputs.to_release == 1
with:
tag_name: ${{ inputs.tag }}
files: |
dist/*.rpm