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

ci: Add Fedora build job to GitHub Actions CI #1610

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,65 @@ jobs:
./publish.sh
ls -lhtra dist/

rpm-fedora:

runs-on: ubuntu-latest
container: fedora:35

steps:
- name: Install external dependencies with dnf
run: |
dnf update -y
dnf install --nogpg -y \
gcc-c++ \
rpm-build \
which \
tar \
dnf-plugins-core \
git
dnf clean all

- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Build
run: |
cd packaging/
./makesrpm.sh \
--define "_with_python3 1" \
--define "_with_ceph11 1"
dnf builddep --nogpgcheck -y *.src.rpm
mkdir RPMS
rpmbuild --rebuild \
--define "_rpmdir RPMS/" \
--define "_with_python3 1" \
--define "_with_ceph11 1" \
--define "_with_openssl3 1" \
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
*.src.rpm

- name: Install
run: |
ls -lh packaging/RPMS/
dnf install -y \
./packaging/RPMS/xrootd-*.rpm \
./packaging/RPMS/python3-xrootd-*.rpm

- name: Verify install
run: |
command -v xrootd
command -v xrdcp

- name: Verify Python bindings
run: |
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
python3 -c 'import pyxrootd; print(pyxrootd)'
python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))'

sdist-centos7:

runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ if ( NOT ${VALID_PIP_EXIT_CODE} EQUAL 0 )
COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install \
${PIP_INSTALL_VERBOSE_FLAG} \
--prefix \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} \
${DEB_INSTALL_ARGS} \
--record PYTHON_INSTALLED
${DEB_INSTALL_ARGS}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

a6a1fda removed all use of PYTHON_INSTALLED so no need to use --record here anymore.

)"
)

Expand Down