Skip to content

Commit 1ac4e12

Browse files
alpemwarriorCalcProgrammer1
authored andcommitted
Create fedora 36 pipeline and deprecate f34 pipeline in favour of f35
1 parent f91d4d7 commit 1ac4e12

File tree

1 file changed

+51
-8
lines changed

1 file changed

+51
-8
lines changed

.gitlab-ci.yml

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,37 @@ before_script:
150150
expire_in: 30 days
151151

152152
#-----------------------------------------------------------------------#
153-
# Linux (.rpm) 64-bit Build Target #
153+
# Linux (.rpm, f35) 64-bit Build Target #
154154
#-----------------------------------------------------------------------#
155-
"Linux 64 rpm":
156-
image: fedora:34
155+
"Linux 64 f35 rpm":
156+
image: fedora:35
157+
stage: build
158+
script:
159+
- dnf install rpmdevtools dnf-plugins-core -y
160+
- rpmdev-setuptree
161+
- ls /root/
162+
- cp fedora/OpenRGB.spec /root/rpmbuild/SPECS
163+
- cp ../OpenRGB /root/rpmbuild/SOURCES/ -r
164+
- cd /root/rpmbuild/SOURCES
165+
- tar -cf OpenRGB.tar.gz OpenRGB/
166+
- cd ..
167+
- dnf builddep SPECS/OpenRGB.spec -y
168+
- rpmbuild -ba SPECS/OpenRGB.spec
169+
- cd RPMS/x86_64/
170+
- mv openrgb*.rpm ${CI_PROJECT_DIR}/
171+
- cd ${CI_PROJECT_DIR}
172+
173+
artifacts:
174+
name: "${CI_PROJECT_NAME}_Linux_64_rpm_${CI_COMMIT_SHORT_SHA}"
175+
paths:
176+
- openrgb*.rpm
177+
expire_in: 30 days
178+
179+
#-----------------------------------------------------------------------#
180+
# Linux (.rpm, f36) 64-bit Build Target #
181+
#-----------------------------------------------------------------------#
182+
"Linux 64 f36 rpm":
183+
image: fedora:36
157184
stage: build
158185
script:
159186
- dnf install rpmdevtools dnf-plugins-core -y
@@ -279,20 +306,36 @@ before_script:
279306
- "Linux 64 .deb (Debian Bullseye)"
280307

281308
#-----------------------------------------------------------------------#
282-
# Fedora 64 v34 test #
309+
# Fedora 64 v35 test #
310+
#-----------------------------------------------------------------------#
311+
"Fedora 64 v35":
312+
image: fedora:35
313+
stage: test
314+
script:
315+
- yum -y localinstall ./openrgb*64.rpm
316+
- openrgb --version
317+
- openrgb -l
318+
- yum -y remove openrgb
319+
dependencies:
320+
- "Linux 64 f35 rpm"
321+
needs:
322+
- "Linux 64 f35 rpm"
323+
324+
#-----------------------------------------------------------------------#
325+
# Fedora 64 v36 test #
283326
#-----------------------------------------------------------------------#
284-
"Fedora 64 v34":
285-
image: fedora:34
327+
"Fedora 64 v36":
328+
image: fedora:36
286329
stage: test
287330
script:
288331
- yum -y localinstall ./openrgb*64.rpm
289332
- openrgb --version
290333
- openrgb -l
291334
- yum -y remove openrgb
292335
dependencies:
293-
- "Linux 64 rpm"
336+
- "Linux 64 f36 rpm"
294337
needs:
295-
- "Linux 64 rpm"
338+
- "Linux 64 f36 rpm"
296339

297340
#-----------------------------------------------------------------------#
298341
# Windows (32-bit) Build Target #

0 commit comments

Comments
 (0)