Skip to content

Commit

Permalink
Drop building and releasing for CentOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
gwarf committed Aug 14, 2024
1 parent 809a085 commit 66faff4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 87 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,6 @@ on:
pull_request:

jobs:
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 rpm
rpmlint --file .rpmlint.ini build/RPMS/x86_64/*.rpm
- name: Upload rpms
uses: actions/upload-artifact@v3
with:
name: rpms7
path: |
build/RPMS/x86_64/ui-*.el7.x86_64.rpm
# Use a matrix for AlmaLinux version
build-almalinux:
strategy:
Expand All @@ -53,21 +31,6 @@ jobs:
path: |
build/RPMS/x86_64/ui-*.el${{ matrix.almalinux-version }}.x86_64.rpm
centos7-install:
name: Install CentOS 7 RPMs
needs: 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 https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
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
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,6 @@ on:
- "v*"

jobs:
centos7:
name: Build centOS 7 RPMs
runs-on: ubuntu-latest
container: 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 rpm
rpmlint --file .rpmlint.ini build/RPMS/x86_64/*.rpm
- name: Upload rpms
uses: actions/upload-artifact@v3
with:
name: rpms7
path: |
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
Expand Down Expand Up @@ -77,33 +54,6 @@ jobs:
build/RPMS/x86_64/ui-*.el9.x86_64.rpm
build/SRPMS/ui-*.el9.src.rpm
release7:
name: Upload CentOS 7 release artefacts
needs: centos7
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: rpms7

- name: Find package name
id: package_name_centos7
run: |
rpm_path=$(find . -name 'ui-*.el7.x86_64.rpm')
src_path=$(find . -name 'ui-*.el7.src.rpm')
echo "rpm_path=${rpm_path}" >> "$GITHUB_OUTPUT"
echo "src_path=${src_path}" >> "$GITHUB_OUTPUT"
- name: Attach CentOS 7 RPMs to the release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
files: |
${{ steps.package_name_centos7.outputs.rpm_path }}
${{ steps.package_name_centos7.outputs.src_path }}
release8:
name: Upload AlmaLinux 8 release artefacts
permissions:
Expand Down

0 comments on commit 66faff4

Please sign in to comment.