CI: add rpm build workflow #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
concurrency: | |
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
CI: | |
runs-on: ubuntu-24.04-arm | |
container: | |
image: registry.fedoraproject.org/fedora:latest | |
options: --privileged | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: ArborX-2.0 | |
- name: Build fedpkg | |
run: dnf -y install fedpkg | |
- name: Make tarball | |
run: | | |
cp ArborX-2.0/test/ArborX.spec . | |
tar -czf ArborX-2.0.tar.gz ArborX-2.0/ | |
spectool -g ArborX.spec | |
- name: Build rpm | |
run: fedpkg --release rawhide mockbuild --use-koji-mock-config | |
- name: Print build error | |
if: failure() | |
run: | | |
for f in 2.0/*.fc4*/*.log; do | |
echo "FILE: $f" | |
cat $f | |
done |