Skip to content

Commit f29baf4

Browse files
KlimTodrikdjklim87
andauthored
Feat: RHEL 10 support (#72)
* Feat: RHEL 10 support Ref: manticoresoftware/manticoresearch/issues/3426 --------- Co-authored-by: djklim87 <klim@manticoresearch.com>
1 parent 357677d commit f29baf4

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ jobs:
157157
cp -p packages/postrun .debpkg/DEBIAN/postinst
158158
159159
mkdir -p .debpkg/usr/bin
160+
mkdir -p .debpkg/usr/share/
160161
mkdir -p .rpmpkg/usr/bin
161162
mkdir -p .rpmpkg/usr/share/
162163
cp -p *_linux_amd64/${{ env.APP_NAME }} .debpkg/usr/bin/${{ env.APP_NAME }}
@@ -215,7 +216,8 @@ jobs:
215216
rpm_path="./${{ env.APP_NAME }}-${version}-1.x86_64.rpm"
216217
cp $rpm_path "./${{ env.APP_NAME }}-${version}-1.el7.x86_64.rpm"
217218
cp $rpm_path "./${{ env.APP_NAME }}-${version}-1.el8.x86_64.rpm"
218-
mv $rpm_path "./${{ env.APP_NAME }}-${version}-1.el9.x86_64.rpm"
219+
cp $rpm_path "./${{ env.APP_NAME }}-${version}-1.el9.x86_64.rpm"
220+
mv $rpm_path "./${{ env.APP_NAME }}-${version}-1.el10.x86_64.rpm"
219221
mkdir -p ./artifacts
220222
mv *.deb ./artifacts/
221223
mv *.rpm ./artifacts/
@@ -241,6 +243,12 @@ jobs:
241243
with:
242244
name: artifact-rpm-el9-amd64
243245
path: ./artifacts/*.el9.*.rpm
246+
247+
- uses: manticoresoftware/upload_artifact_with_retries@main
248+
with:
249+
name: artifact-rpm-el10-amd64
250+
path: ./artifacts/*.el10.*.rpm
251+
244252
build-linux-packages-arm64:
245253
needs:
246254
- vars
@@ -343,6 +351,7 @@ jobs:
343351
rpm_path="./artifacts/${{ env.APP_NAME }}-${version}-1.el7.aarch64.rpm"
344352
cp $rpm_path "./artifacts/${{ env.APP_NAME }}-${version}-1.el8.aarch64.rpm"
345353
cp $rpm_path "./artifacts/${{ env.APP_NAME }}-${version}-1.el9.aarch64.rpm"
354+
cp $rpm_path "./artifacts/${{ env.APP_NAME }}-${version}-1.el10.aarch64.rpm"
346355
347356
- uses: manticoresoftware/upload_artifact_with_retries@main
348357
with:
@@ -359,6 +368,11 @@ jobs:
359368
name: artifact-rpm-el9-aarch64
360369
path: ./artifacts/*.el9.*.rpm
361370

371+
- uses: manticoresoftware/upload_artifact_with_retries@main
372+
with:
373+
name: artifact-rpm-el10-aarch64
374+
path: ./artifacts/*.el10.*.rpm
375+
362376
build-extra-packages:
363377
runs-on: ubuntu-22.04
364378
needs:
@@ -430,7 +444,8 @@ jobs:
430444
rpm_path="./${{ env.EXTRA_NAME }}-${version}-1.noarch.rpm"
431445
cp $rpm_path "./${{ env.EXTRA_NAME }}-${version}-1.el7.noarch.rpm"
432446
cp $rpm_path "./${{ env.EXTRA_NAME }}-${version}-1.el8.noarch.rpm"
433-
mv $rpm_path "./${{ env.EXTRA_NAME }}-${version}-1.el9.noarch.rpm"
447+
cp $rpm_path "./${{ env.EXTRA_NAME }}-${version}-1.el9.noarch.rpm"
448+
mv $rpm_path "./${{ env.EXTRA_NAME }}-${version}-1.el10.noarch.rpm"
434449
435450
mkdir -p ./artifacts
436451
mv *.deb ./artifacts/
@@ -458,6 +473,11 @@ jobs:
458473
name: artifact-extra-rpm-el9
459474
path: ./artifacts/*.el9.noarch.rpm
460475

476+
- uses: manticoresoftware/upload_artifact_with_retries@main
477+
with:
478+
name: artifact-extra-rpm-el10
479+
path: ./artifacts/*.el10.noarch.rpm
480+
461481
create-release:
462482
runs-on: ubuntu-22.04
463483
permissions:
@@ -569,6 +589,9 @@ jobs:
569589
- pkg: rpm
570590
suffix: "el9-amd64"
571591
asset_content_type: application/x-rpm
592+
- pkg: rpm
593+
suffix: "el10-amd64"
594+
asset_content_type: application/x-rpm
572595
- pkg: rpm
573596
suffix: "el7-aarch64"
574597
asset_content_type: application/x-rpm
@@ -578,6 +601,9 @@ jobs:
578601
- pkg: rpm
579602
suffix: "el9-aarch64"
580603
asset_content_type: application/x-rpm
604+
- pkg: rpm
605+
suffix: "el10-aarch64"
606+
asset_content_type: application/x-rpm
581607
steps:
582608
- uses: manticoresoftware/download_artifact_with_retries@main
583609
with:
@@ -625,6 +651,9 @@ jobs:
625651
- pkg: rpm
626652
suffix: "-el9"
627653
asset_content_type: application/x-rpm
654+
- pkg: rpm
655+
suffix: "-el10"
656+
asset_content_type: application/x-rpm
628657
steps:
629658
# We download amd64 only but just because of noarch
630659
- uses: manticoresoftware/download_artifact_with_retries@main
@@ -763,6 +792,16 @@ jobs:
763792
arch: aarch
764793
delimiter: "_"
765794
distro: 9
795+
- artifact: artifact-rpm-el10-amd64
796+
type: rpm
797+
arch: x86_64
798+
delimiter: "_"
799+
distro: 10
800+
- artifact: artifact-rpm-el10-aarch64
801+
type: rpm
802+
arch: aarch
803+
delimiter: "_"
804+
distro: 10
766805
- artifact: artifact-macos-13-x86_64
767806
type: arc
768807
arch: x86_64
@@ -819,6 +858,11 @@ jobs:
819858
arch: noarch
820859
delimiter: "_"
821860
distro: 9
861+
- artifact: artifact-extra-rpm-el10
862+
type: rpm
863+
arch: noarch
864+
delimiter: "_"
865+
distro: 10
822866
steps:
823867
- name: Deploy package
824868
uses: manticoresoftware/publish_to_repo@main

0 commit comments

Comments
 (0)