Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for AlmaLinux 8 #11

Merged
merged 8 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 32 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
path: |
build/RPMS/x86_64/ui-*.el7.x86_64.rpm

build-almalinux9:
name: Build AlmaLinux 9 RPMs
# Use a matrix for AlmaLinux version
build-almalinux:
strategy:
matrix:
almalinux-version: [8, 9]
name: Build AlmaLinux ${{ matrix.almalinux-version }} RPMs
runs-on: ubuntu-latest
container: almalinux:9
container: almalinux:${{ matrix.almalinux-version }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -41,13 +45,13 @@ jobs:
- name: build rpm
run: |
make clean rpm
rpmlint --file .rpmlint.ini build/RPMS/noarch/*.rpm
rpmlint --file .rpmlint.ini build/RPMS/x86_64/*.rpm
- name: Upload RPMs
uses: actions/upload-artifact@v3
with:
name: rpms9
name: rpms${{ matrix.almalinux-version }}
path: |
build/RPMS/x86_64/ui-*.el9.x86_64.rpm
build/RPMS/x86_64/ui-*.el${{ matrix.almalinux-version }}.x86_64.rpm

centos7-install:
name: Install CentOS 7 RPMs
Expand All @@ -64,9 +68,28 @@ jobs:
yum install -y http://repository.egi.eu/sw/production/umd/4/centos7/x86_64/updates/umd-release-4.1.3-1.el7.centos.noarch.rpm
yum localinstall -y ui-*.rpm

install-almalinux8:
name: Install AlmaLinux 8 RPMs
needs: build-almalinux
runs-on: ubuntu-latest
container: almalinux:8
steps:
- uses: actions/download-artifact@v3
with:
name: rpms8
- name: Install generated RPMs
run: |
dnf install -y epel-release
dnf config-manager --add-repo http://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo
# FIXME: Remove htcondor and replace WLCG repo by UMD5 once available
dnf install -y https://linuxsoft.cern.ch/wlcg/el8/x86_64/wlcg-repo-1.0.0-1.el8.noarch.rpm
dnf install -y https://research.cs.wisc.edu/htcondor/repo/23.x/htcondor-release-current.el8.noarch.rpm
dnf config-manager --set-enabled powertools
dnf localinstall -y ui-*.rpm

install-almalinux9:
name: Install AlmaLinux 9 RPMs
needs: build-almalinux9
needs: build-almalinux
runs-on: ubuntu-latest
container: almalinux:9
steps:
Expand All @@ -77,7 +100,8 @@ jobs:
run: |
dnf install -y epel-release
dnf config-manager --add-repo http://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo
# FIXME: Replace WLCG repo by UMD5 once available
# FIXME: Remove htcondor and replace WLCG repo by UMD5 once available
dnf install -y https://linuxsoft.cern.ch/wlcg/el9/x86_64/wlcg-repo-1.0.0-1.el9.noarch.rpm
dnf install -y https://research.cs.wisc.edu/htcondor/repo/23.x/htcondor-release-current.el9.noarch.rpm
dnf config-manager --set-enabled crb
dnf localinstall -y ui-*.rpm
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,28 @@ jobs:
build/RPMS/x86_64/ui-*.el7.x86_64.rpm
build/SRPMS/ui-*.el7.src.rpm

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: |
dnf install -y rpm-build make rsync systemd-rpm-macros
- name: build rpm
run: |
make clean rpm
- name: Upload RPMs
uses: actions/upload-artifact@v4
with:
name: rpms8
path: |
build/RPMS/x86_64/ui-*.el8.x86_64.rpm
build/SRPMS/ui-*.el8.src.rpm

almalinux9:
name: Build AlmaLinux 9 RPMs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -82,6 +104,33 @@ jobs:
${{ steps.package_name_centos7.outputs.rpm_path }}
${{ steps.package_name_centos7.outputs.src_path }}

release8:
name: Upload AlmaLinux 8 release artefacts
permissions:
contents: write # to upload release asset (softprops/action-gh-release)
needs: almalinux8
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: rpms8
- name: Find package name
id: package_name_almalinux8
run: |
rpm_path=$(find . -name 'ui-*.el8.x86_64.rpm')
src_path=$(find . -name 'ui-*.el8.src.rpm')
echo "rpm_path=${rpm_path}" >> "$GITHUB_OUTPUT"
echo "src_path=${src_path}" >> "$GITHUB_OUTPUT"
- name: Attach AlmaLinux 8 RPMs to the release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
files: |
${{ steps.package_name_almalinux8.outputs.rpm_path }}
${{ steps.package_name_almalinux8.outputs.src_path }}

release9:
name: Upload AlmaLinux 9 release artefacts
permissions:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to

## [Unreleased]

## [6.1.0]
- Build and package for RHEL8 (#11) (Baptiste Grenier)

## [6.0.1]
- Add ARC REST, ginfo and lcg-infosites on RHEL9 (#10) (Baptiste Grenier)

Expand Down
4 changes: 3 additions & 1 deletion ui.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}

Name: ui
Version: 6.0.1
Version: 6.1.0
Release: 1%{?dist}
Summary: User Interface meta-package
Group: Applications/Internet
Expand Down Expand Up @@ -81,6 +81,8 @@ rm -rf %{buildroot}
%doc /usr/share/doc/ui/README.md

%changelog
* Tue Jun 11 2024 <[email protected]> - 6.1.0-1
- Build and package for RHEL8 (#11) (Baptiste Grenier)
* Mon Jun 10 2024 <[email protected]> - 6.0.1-1
- Add ARC REST, ginfo and lcg-infosites on RHEL9 (#10) (Baptiste Grenier)
* Tue Jun 04 2024 <[email protected]> - 6.0.0-1
Expand Down
Loading