File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 pull_request : {} # any target
3131
3232jobs :
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
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
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
You can’t perform that action at this time.
0 commit comments