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