Skip to content

RPM Build

RPM Build #6

Workflow file for this run

name: RPM Build
on:
workflow_call:
workflow_dispatch:
jobs:
build-srpm:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Dependencies
run: |
sudo apt-get install bash git make
- name: Determine Version
id: version
run: |
echo "ksd_version=$(make version)" >> "$GITHUB_ENV"
- name: Generate Archive
run: |
make archive
- name: Generate Source RPM
id: srpm
uses: next-actions/build-srpm@master
with:
tarball: kojismokydingo-${{ env.ksd_version }}.tar.gz
specfile: kojismokydingo.spec
- name: Store Source RPM
uses: actions/upload-artifact@v3
with:
name: RPMs
path: ${{ steps.srpm.outputs.path }}
build-rpm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
# - 'fedora30'
# - 'fedora32'
# - 'fedora34'
- 'fedora36'
- 'fedora37'
- 'fedora38'
- 'rockylinux8'
- 'rockylinux9'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Dependencies
run: |
sudo apt-get install bash git make podman
- name: Generate Archive
run: |
make archive
- name: Generate ${{ matrix.platform }} RPM
run: |
tools/launch-build.sh ${{ matrix.platform }}
- name: Store ${{ matrix.platform }} RPM
uses: actions/upload-artifact@v3
with:
name: RPMs
path: dist/${{ matrix.platform }}/RPMS/noarch/*.rpm
# The end.