Skip to content

Add EL7 (CentOS 7) CI/CD support for i686 and x86_64#9

Merged
ayanimea merged 2 commits into
feature-centos7from
copilot/support-el7-i686-x86-64
Mar 8, 2026
Merged

Add EL7 (CentOS 7) CI/CD support for i686 and x86_64#9
ayanimea merged 2 commits into
feature-centos7from
copilot/support-el7-i686-x86-64

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 8, 2026

Extends CI/CD coverage to Enterprise Linux 7 with RPM packaging for both x86_64 and i686, matching the existing EL6 pattern.

New files

  • build/SPECS/cnee-el7.spec — RPM spec for EL7; uses GPLv3+ licence tag and plain make/make install DESTDIR= (EL7-compatible macros)
  • .github/workflows/el7.yml — GHA workflow with arch: [x86_64, i686] matrix

Workflow design

Follows the EL6 approach exactly: runs on ubuntu-latest and shells into centos:7 via explicit docker run (avoids Node 20 requiring glibc ≥ 2.17 vs the container directive injecting the runner into the image).

CentOS 7 is EOL, so repos are redirected to vault.centos.org/7.9.2009.

i686 builds use the same gcc -m32 wrapper strategy as EL6:

printf '#!/bin/sh\nexec gcc -m32 "$@"\n' > /usr/local/bin/i686-redhat-linux-gnu-gcc
# rpmbuild driven via:
rpmbuild -ba \
    --define "_host i686-redhat-linux-gnu" \
    --define "_target_cpu i686" \
    --define "optflags -O2 -g -m32 -march=i686 -mtune=generic" \
    "$HOME/rpmbuild/SPECS/cnee.spec"

Artifacts are uploaded as cnee-el7-x86_64-rpm and cnee-el7-i686-rpm.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: ayanimea <13433370+ayanimea@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for EL 7 i686 and x86_64 in CI/CD Add EL7 (CentOS 7) CI/CD support for i686 and x86_64 Mar 8, 2026
@ayanimea ayanimea requested a review from Copilot March 8, 2026 16:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds GitHub Actions CI/CD coverage for Enterprise Linux 7 (CentOS 7.9 vault) and produces RPM artifacts for both x86_64 and i686, mirroring the existing EL6 workflow pattern.

Changes:

  • Introduce an EL7 RPM spec (build/SPECS/cnee-el7.spec) aligned with the existing EL6 spec approach.
  • Add an EL7 GitHub Actions workflow (.github/workflows/el7.yml) that builds/tests in centos:7 via docker run, with an x86_64/i686 matrix and RPM artifact upload.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
build/SPECS/cnee-el7.spec Adds an EL7-focused RPM spec for packaging cnee using EL7-compatible build/install macros.
.github/workflows/el7.yml Adds an EL7 CI workflow that builds, runs the existing e2e script, and produces RPM/SRPM artifacts for both architectures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ayanimea ayanimea marked this pull request as ready for review March 8, 2026 16:10
@ayanimea ayanimea merged commit f71e1b8 into feature-centos7 Mar 8, 2026
14 checks passed
@ayanimea ayanimea deleted the copilot/support-el7-i686-x86-64 branch March 8, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants