Skip to content

Commit c7ad02b

Browse files
BrianSiposmfarina1
andauthored
Install package deps from RPM spec file (#185)
* Install package deps from RPM spec file * Test job to install packages --------- Co-authored-by: Madeline Farina <mhfarina1@gmail.com>
1 parent c991549 commit c7ad02b

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

.github/workflows/packages.yaml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,18 @@ on:
3030
pull_request: {} # any target
3131

3232
jobs:
33-
rpm:
34-
runs-on: ubuntu-22.04
33+
rpm-build:
34+
name: Build RPM packages (RHEL-9)
35+
runs-on: ubuntu-latest
3536
container: quay.io/centos/centos:stream9
3637
permissions:
3738
contents: read
38-
actions: write
3939
steps:
4040
- name: Set up OS
4141
run: |
4242
dnf config-manager --set-enabled crb
4343
dnf install -y epel-release
4444
dnf install -y \
45-
rsync cmake git ninja-build gcc gcc-c++ ccache ruby \
46-
openssl-devel jansson-devel \
47-
doxygen graphviz plantuml texlive-bibtex \
48-
asciidoctor \
4945
tito rpm-build rpmlint
5046
- name: Checkout repository
5147
uses: actions/checkout@v6
@@ -56,6 +52,8 @@ jobs:
5652
uses: hendrikmuhs/ccache-action@v1.2.22
5753
with:
5854
create-symlink: true
55+
- name: Dependencies
56+
run: dnf builddep -y bsl.spec
5957
- name: Build
6058
run: ./build.sh rpm-build
6159
- name: Check
@@ -78,3 +76,29 @@ jobs:
7876
build/default/pkg/*/*.rpm
7977
build/default/pkg/rpmlint.txt
8078
retention-days: 1
79+
80+
rpm-install:
81+
name: Install RPM packages (RHEL-9)
82+
needs: rpm-build
83+
runs-on: ubuntu-latest
84+
container: quay.io/centos/centos:stream9
85+
permissions:
86+
contents: read
87+
steps:
88+
- name: Set up OS
89+
run: |
90+
dnf config-manager --set-enabled crb
91+
dnf install -y epel-release
92+
- uses: actions/download-artifact@v4
93+
with:
94+
name: bsl-rpm
95+
- name: Install
96+
run: dnf install -y x86_64/bsl*.rpm
97+
- name: Run tests
98+
run: |
99+
FAILURES=0
100+
for TESTEXEC in /usr/libexec/bsl/test_*
101+
do
102+
$TESTEXEC || FAILURES=$(($FAILURES + 1))
103+
done
104+
exit $FAILURES

0 commit comments

Comments
 (0)