Skip to content

Commit 84da9ad

Browse files
committed
ci: Add RPM building for fedora, centos7 and centos8
Signed-off-by: Cole Robinson <[email protected]>
1 parent 88f51f2 commit 84da9ad

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,33 @@ jobs:
4343
with:
4444
file: ./coverage.xml
4545
flags: unittests
46+
47+
# Build the RPM on latest fedora, centos7 and centos8
48+
rpm:
49+
runs-on: ubuntu-latest
50+
51+
container:
52+
image: fedora:latest
53+
# All this is needed to ensure 'mock' works in docker
54+
options: --cap-add=SYS_ADMIN --security-opt label:disable --security-opt seccomp=unconfined --security-opt apparmor:unconfined
55+
56+
steps:
57+
- uses: actions/checkout@v2
58+
59+
- name: Install deps
60+
run: |
61+
# glibc-langpacks-en needed to work around python locale issues
62+
dnf install -y \
63+
python3-pip \
64+
rpm-build \
65+
mock \
66+
dnf-plugins-core \
67+
glibc-langpack-en
68+
dnf builddep -y ./*.spec
69+
70+
- name: Build RPM + SRPM
71+
run: |
72+
./setup.py rpm
73+
74+
- run: mock --root epel-7-x86_64 *.src.rpm
75+
- run: mock --root epel-8-x86_64 *.src.rpm

0 commit comments

Comments
 (0)