Skip to content

ci: build RPM

ci: build RPM #11

Workflow file for this run

name: Build RPM
# If a pull-request is pushed then cancel all previously running jobs related
# to that pull-request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Build RPM packages
container:
image: fedora:40
steps:
- name: Install git and tito
run: |
dnf install -y git tito
# Install git before doing `actions/checkout` so that we get our `.git/`
# directory
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Debug
run: |
pwd
ls -lA
echo "GITHUB_WORKSPACE ${GITHUB_WORKSPACE}"
- name: Specify git safe directory
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
git show
- name: Install dependencies of the SPEC file
run: |
dnf builddep -y beaker-system-scan.spec
- name: Build RPM
run: |
tito build --rpm --output ./tito/