Skip to content

Commit 5525026

Browse files
committed
Also build for the manylinux 2_34.
1 parent 6b58415 commit 5525026

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/build_and_test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,13 @@ jobs:
8282
packages: write
8383
env:
8484
PY_VER: ${{ matrix.python-version }}
85-
BASE_IMAGE: quay.io/pypa/manylinux_2_28:latest
85+
BASE_IMAGE: quay.io/pypa/manylinux_${{ matrix.mnl-version }}:latest
8686
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
8787
strategy:
8888
fail-fast: false
8989
matrix:
9090
python-version: ['3.8', '3.9', '3.11', '3.12']
91+
mnl-version: ['2_28', '2_34']
9192
steps:
9293
- name: Set up Python ${{ env.PY_VER }}
9394
uses: actions/setup-python@v5
@@ -118,7 +119,7 @@ jobs:
118119
sort -u | grep -v unknown | paste -sd ','`"
119120
GIT_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
120121
GIT_BRANCH="${GIT_BRANCH#refs/tags/}"
121-
BUILD_IMAGE="${GHCR_REPO}:${GIT_BRANCH}-py${PY_VER}"
122+
BUILD_IMAGE="${GHCR_REPO}:${GIT_BRANCH}-py${PY_VER}-mnl${{ matrix.mnl-version }}"
122123
test "${{ github.event_name }}" != 'pull_request' && \
123124
CACHE_SPEC="type=registry,ref=${BUILD_IMAGE}-buildcache" || \
124125
CACHE_SPEC="gha"

scripts/build/install_depends_yum.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
set -e
44

5-
if [ "${PY_VER}" = "3.9" -o "${PY_VER}" = "3.8" ]
5+
. /etc/os-release
6+
7+
if [ "${VERSION_ID}" -gt 8 ]
8+
then
9+
dnf config-manager --set-enabled crb
10+
fi
11+
12+
if [ "${VERSION_ID}" -eq 8 -a "${PY_VER}" = "3.9" -o "${PY_VER}" = "3.8" ]
613
then
714
PY_VER="3${PY_VER#3.}"
815
dnf module enable python${PY_VER} -y

0 commit comments

Comments
 (0)