File tree Expand file tree Collapse file tree 2 files changed +29
-14
lines changed
Expand file tree Collapse file tree 2 files changed +29
-14
lines changed Original file line number Diff line number Diff line change @@ -39,21 +39,18 @@ jobs:
3939
4040 runs-on : ubuntu-latest
4141 container :
42- image : centos:stream8 # CentOS Stream 8 has a newer glibc version
42+ image : node:20-bullseye # Use the official Node.js 20 image based on Debian
4343 steps :
44- - name : Install Node.js 20
45- run : |
46- dnf install -y curl
47- curl -sL https://rpm.nodesource.com/setup_20.x | bash -
48- dnf install -y nodejs
49- node -v
50- npm -v
5144 - uses : actions/checkout@v3
5245 with :
5346 submodules : true
5447 - name : Set target Python version PATH
5548 run : |
5649 echo "/opt/python/${{ matrix.python-version }}/bin" >> $GITHUB_PATH
50+ - name : Install Python Build Dependencies
51+ run : |
52+ apt-get update
53+ apt-get install -y python3 python3-pip python3-dev build-essential
5754 - name : Build and publish
5855 env :
5956 TWINE_USERNAME : __token__
Original file line number Diff line number Diff line change 22
33set -e
44
5- yum makecache -y
6- yum install centos-release-scl -y
7- yum-config-manager --enable rhel-server-rhscl-7-rpms
8- yum install llvm-toolset-7.0 python3 python3-devel -y
5+ # Update the package list
6+ apt-get update
97
10- # Python
8+ # Install necessary packages and build tools
9+ apt-get install -y \
10+ software-properties-common \
11+ python3 \
12+ python3-dev \
13+ python3-pip \
14+ build-essential \
15+ llvm \
16+ clang \
17+ lsb-release
18+
19+ # Add the LLVM repository to get the latest version of LLVM (if needed)
20+ wget https://apt.llvm.org/llvm.sh
21+ chmod +x llvm.sh
22+ ./llvm.sh 14 # Replace 14 with the required version if necessary
23+
24+ # Upgrade pip to the latest version
1125python3 -m pip install --upgrade pip
26+
27+ # Install Python packaging tools
1228python3 -m pip install setuptools wheel twine auditwheel
1329
14- # Publish
30+ # Build Python wheels
1531python3 -m pip wheel . -w dist/ --no-deps
32+
33+ # Publish the built wheels to PyPI
1634twine upload --verbose --skip-existing dist/*
You can’t perform that action at this time.
0 commit comments