Skip to content

Commit 8bd1d73

Browse files
committed
ci: use Python 3.10 for Linux standalone installer
1 parent e83c38c commit 8bd1d73

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/build_release_assets.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
- os: ubuntu-22.04
5555
# When building on Linux we use a container to build using an old enough version
5656
container: rockylinux/rockylinux:8
57+
sha256sum:
58+
python: e8d7ed8c6f8c6f85cd083d5051cafd8c6c01d09eca340d1da74d0c00ff1cb897
5759
- os: windows-2022
5860
- os: macos-13
5961
arch: x86_64
@@ -91,11 +93,22 @@ jobs:
9193
9294
# Install necessary packages
9395
yum install -y \
94-
python3.9 \
9596
git-core \
9697
findutils
9798
98-
echo PYTHON_CMD=/usr/bin/python3.9 >> $GITHUB_ENV
99+
# Install Python 3.10 (we can't use the one from setup-python@v5: it requires a more recent version of libc)
100+
PYTHON_VERSION=3.10.16
101+
PYTHON_BUILD=20250317
102+
scripts/download \
103+
https://github.com/indygreg/python-build-standalone/releases/download/${PYTHON_BUILD}/cpython-${PYTHON_VERSION}+${PYTHON_BUILD}-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz \
104+
python.tar.gz \
105+
${{ matrix.sha256sum.python }}
106+
107+
tar xf python.tar.gz
108+
109+
# Make Python available
110+
echo PATH=$PWD/python/bin:$PATH >> $GITHUB_ENV
111+
echo PYTHON_CMD=$PWD/python/bin/python >> $GITHUB_ENV
99112
100113
# Install NFPM
101114
NFPM_VERSION=2.36.1

0 commit comments

Comments
 (0)