mirror of
https://github.com/ekaaty/ca-certificates-brazil.git
synced 2025-12-06 01:22:38 -03:00
Remove rpm-build workflows
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -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
|
||||
with:
|
||||
containers: "['fedora:latest', 'fedora:41']"
|
||||
to_release: ${{ needs.release-ci.outputs.to_release }}
|
||||
tag: ${{ needs.release-ci.outputs.tag }}
|
||||
- name: Create and publish GitHub release
|
||||
if: steps.newtag.outputs.to_release == 1
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ steps.get_metadata.outputs.tag }}
|
||||
|
||||
72
.github/workflows/fedora.yml
vendored
72
.github/workflows/fedora.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user