Debian Codegraph @

.github/workflows/build.yml

raw symbols SCIP
1 ---
2 name: Create packages and test installation
3
4 on:
5 pull_request:
6
7 jobs:
8 build-centos7:
9 name: Build CentOS 7 RPMs
10 runs-on: ubuntu-latest
11 container: quay.io/centos/centos:7
12 steps:
13 - uses: actions/checkout@v3
14 with:
15 fetch-depth: 0
16 - name: Install build requisites
17 run: |
18 yum install -y rpm-build rpmlint make rsync
19 - name: build rpm
20 run: |
21 make clean rpm
22 rpmlint --file .rpmlint.ini build/RPMS/noarch/*.rpm
23 - name: Upload RPMs
24 uses: actions/upload-artifact@v3
25 with:
26 name: rpms7
27 path: |
28 build/RPMS/noarch/bdii-*.el7.noarch.rpm
29
30 build-almalinux8:
31 name: Build AlmaLinux 8 RPMs
32 runs-on: ubuntu-latest
33 container: almalinux:8
34 steps:
35 - uses: actions/checkout@v4
36 with:
37 fetch-depth: 0
38 - name: Install build requisites
39 run: |
40 yum install -y rpm-build rpmlint make rsync
41 - name: build rpm
42 run: |
43 make clean rpm
44 rpmlint --file .rpmlint.ini build/RPMS/noarch/*.rpm
45 - name: Upload RPMs
46 uses: actions/upload-artifact@v3
47 with:
48 name: rpms8
49 path: |
50 build/RPMS/noarch/bdii-*.el8.noarch.rpm
51
52 build-almalinux9:
53 name: Build AlmaLinux 9 RPMs
54 runs-on: ubuntu-latest
55 container: almalinux:9
56 steps:
57 - uses: actions/checkout@v4
58 with:
59 fetch-depth: 0
60 - name: Install build requisites
61 run: |
62 yum install -y rpm-build rpmlint make rsync systemd-rpm-macros
63 - name: build rpm
64 run: |
65 make clean rpm
66 rpmlint --file .rpmlint.ini build/RPMS/noarch/*.rpm
67 - name: Upload RPMs
68 uses: actions/upload-artifact@v3
69 with:
70 name: rpms9
71 path: |
72 build/RPMS/noarch/bdii-*.el9.noarch.rpm
73
74 # XXX Dependency from EPEL: glue-schema
75 install-centos7:
76 name: Install CentOS 7 RPMs
77 needs: build-centos7
78 runs-on: ubuntu-latest
79 container: quay.io/centos/centos:7
80 steps:
81 - uses: actions/download-artifact@v3
82 with:
83 name: rpms7
84 - name: Install generated RPMs
85 run: |
86 yum install -y epel-release
87 yum localinstall -y bdii-*.el7.noarch.rpm
88
89 # XXX Dependency from EPEL: glue-schema
90 install-almalinux8:
91 name: Install AlmaLinux 8 RPMs
92 needs: build-almalinux8
93 runs-on: ubuntu-latest
94 container: almalinux:8
95 steps:
96 - uses: actions/download-artifact@v3
97 with:
98 name: rpms8
99 - name: Install generated RPMs
100 run: |
101 yum install -y epel-release
102 dnf config-manager --set-enabled powertools
103 yum localinstall -y bdii-*.el8.noarch.rpm
104
105 # XXX Dependencies from EPEL: glue-schema, openldap-servers
106 install-almalinux9:
107 name: Install AlmaLinux 9 RPMs
108 needs: build-almalinux9
109 runs-on: ubuntu-latest
110 container: almalinux:9
111 steps:
112 - uses: actions/download-artifact@v3
113 with:
114 name: rpms9
115 - name: Install generated RPMs
116 run: |
117 yum install -y epel-release
118 yum localinstall -y bdii-*.el9.noarch.rpm