forked from xrootd/xrootd
-
Notifications
You must be signed in to change notification settings - Fork 0
249 lines (197 loc) · 6.44 KB
/
RPM.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
name: RPM
on:
push:
branches:
- master
paths-ignore:
- .gitignore
- .gitlab-ci.yml
- .mailmap
- '**.md'
- 'docs/**'
- 'docker/**'
tags-ignore:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
centos7:
name: CentOS 7
runs-on: ubuntu-latest
container: centos:7
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node18
steps:
- name: Use CentOS 7 Vault Repository URLs
run: |
sed -i -e '/mirrorlist/d' \
-e 's/# \?baseurl=/baseurl=/g' \
-e 's/mirror.centos.org/vault.centos.org/g' \
-e 's/$releasever/7.9.2009/g' \
/etc/yum.repos.d/*.repo
yum install -y centos-release-scl epel-release
sed -i -e '/mirrorlist/d' \
-e 's/# \?baseurl=/baseurl=/g' \
-e 's/mirror.centos.org/vault.centos.org/g' \
-e 's/$releasever/7.9.2009/g' \
/etc/yum.repos.d/*.repo
- name: Install git
run: yum install -y git
- name: Clone repository
uses: actions/checkout@v1
- name: Install RPM development tools
run: |
yum install -y epel-rpm-macros rpmdevtools yum-utils
- name: Install XRootD build dependencies
run: yum-builddep -y xrootd.spec
- name: Build RPMs
run: |
rpmdev-setuptree
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git archive --prefix xrootd/ -o $(rpm -E '%{_sourcedir}')/xrootd.tar.gz HEAD
rpmbuild -bb --with git xrootd.spec
- name: Install RPMs
run: yum install -y $(rpm -E '%{_rpmdir}')/*/*.rpm
- name: Run post-install tests
run: tests/post-install.sh
alma8:
name: Alma Linux 8
runs-on: ubuntu-latest
container: almalinux:8
steps:
- name: Install git
run: yum install -y git
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install RPM development tools
run: |
dnf install -y epel-release rpmdevtools dnf-plugins-core
dnf config-manager --set-enabled powertools
- name: Install XRootD build dependencies
run: dnf builddep -y xrootd.spec
- name: Build RPMs
run: |
rpmdev-setuptree
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git archive --prefix xrootd/ -o $(rpm -E '%{_sourcedir}')/xrootd.tar.gz HEAD
rpmbuild -bb --with git xrootd.spec
- name: Install RPMs
run: dnf install -y $(rpm -E '%{_rpmdir}')/*/*.rpm
- name: Run post-install tests
run: tests/post-install.sh
- name: Move RPMs to Artifact Directory
run: mkdir RPMS && mv $(rpm -E '%{_rpmdir}')/ RPMS$(rpm -E '%{dist}' | tr . /)
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: alma8
path: RPMS
retention-days: 14
alma9:
name: Alma Linux 9
runs-on: ubuntu-latest
container: almalinux:9
steps:
- name: Install git
run: yum install -y git
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install RPM development tools
run: |
dnf install -y epel-release rpmdevtools dnf-plugins-core
dnf config-manager --set-enabled crb
- name: Install XRootD build dependencies
run: dnf builddep -y xrootd.spec
- name: Build RPMs
run: |
rpmdev-setuptree
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git archive --prefix xrootd/ -o $(rpm -E '%{_sourcedir}')/xrootd.tar.gz HEAD
rpmbuild -bb --with git xrootd.spec
- name: Install RPMs
run: dnf install -y $(rpm -E '%{_rpmdir}')/*/*.rpm
- name: Run post-install tests
run: tests/post-install.sh
- name: Move RPMs to Artifact Directory
run: mkdir RPMS && mv $(rpm -E '%{_rpmdir}')/ RPMS$(rpm -E '%{dist}' | tr . /)
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: alma9
path: RPMS
retention-days: 14
alma10beta:
name: Alma Linux 10 (beta)
runs-on: ubuntu-latest
container: almalinux:9
steps:
- name: Install git
run: yum install -y git
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install RPM development tools
run: |
dnf install -y epel-release rpmdevtools dnf-plugins-core
dnf config-manager --set-enabled crb
- name: Install XRootD build dependencies
run: dnf builddep -y xrootd.spec
- name: Build RPMs
run: |
rpmdev-setuptree
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git archive --prefix xrootd/ -o $(rpm -E '%{_sourcedir}')/xrootd.tar.gz HEAD
rpmbuild -bb --with git xrootd.spec
- name: Install RPMs
run: dnf install -y $(rpm -E '%{_rpmdir}')/*/*.rpm
- name: Run post-install tests
run: tests/post-install.sh
- name: Move RPMs to Artifact Directory
run: mkdir RPMS && mv $(rpm -E '%{_rpmdir}')/ RPMS$(rpm -E '%{dist}' | tr . /)
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: alma10
path: RPMS
retention-days: 14
fedora:
name: Fedora 41
runs-on: ubuntu-latest
container: fedora:41
steps:
- name: Install git
run: yum install -y git
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install RPM development tools
run: |
dnf install -y rpmdevtools dnf-plugins-core
- name: Install XRootD build dependencies
run: dnf builddep -y --define 'with_ceph 1' xrootd.spec
- name: Build RPMs
run: |
rpmdev-setuptree
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git archive --prefix xrootd/ -o $(rpm -E '%{_sourcedir}')/xrootd.tar.gz HEAD
rpmbuild -bb --with git --with ceph xrootd.spec
- name: Install RPMs
run: dnf install -y $(rpm -E '%{_rpmdir}')/*/*.rpm
- name: Run post-install tests
run: tests/post-install.sh
- name: Move RPMs to Artifact Directory
run: mkdir RPMS && mv $(rpm -E '%{_rpmdir}')/ RPMS$(rpm -E '%{dist}' | tr . /)
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: fc39
path: RPMS
retention-days: 14