Skip to content

Commit 954f90e

Browse files
authored
Update cross-platform-build-verification.yml
Signed-off-by: 1minds3t <1minds3t@proton.me>
1 parent 92aa953 commit 954f90e

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/cross-platform-build-verification.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,22 @@ jobs:
112112
- name: Checkout
113113
uses: actions/checkout@v4
114114

115-
- name: Test in ${{ matrix.distro }} (Podman)
115+
- name: Test in ${{ matrix.distro }}
116116
run: |
117-
podman run --rm -v $(pwd):/workspace:Z ${{ matrix.distro }} /bin/bash -c "
117+
docker run --rm -v $(pwd):/workspace ${{ matrix.distro }} /bin/bash -c "
118118
cd /workspace
119-
if command -v apt-get &> /dev/null; then
120-
apt-get update && apt-get install -y python3 python3-pip python3-venv
121-
elif command -v dnf &> /dev/null; then
119+
120+
# RHEL/Rocky/Alma 8 ship with Python 3.6 by default (Too old).
121+
# We must explicitly install Python 3.9 on these older systems.
122+
if grep -q 'release 8' /etc/redhat-release 2>/dev/null; then
123+
dnf install -y python39 python39-pip
124+
# Force 'python3' to point to the new 3.9 installation
125+
ln -sf /usr/bin/python3.9 /usr/bin/python3
126+
else
127+
# Fedora and RHEL 9+ have compliant Python versions (3.9+) by default
122128
dnf install -y python3 python3-pip
123129
fi
130+
124131
python3 -m pip install --upgrade pip build
125132
python3 -m build
126133
python3 -m pip install dist/*.whl

0 commit comments

Comments
 (0)