Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdavis committed Sep 4, 2024
1 parent e94396e commit abae817
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,18 @@ jobs:

runs-on: ubuntu-latest
container:
image: centos:stream8 # CentOS Stream 8 has a newer glibc version
image: node:20-bullseye # Use the official Node.js 20 image based on Debian
steps:
- name: Install Node.js 20
run: |
dnf install -y curl
curl -sL https://rpm.nodesource.com/setup_20.x | bash -
dnf install -y nodejs
node -v
npm -v
- uses: actions/checkout@v3
with:
submodules: true
- name: Set target Python version PATH
run: |
echo "/opt/python/${{ matrix.python-version }}/bin" >> $GITHUB_PATH
- name: Install Python Build Dependencies
run: |
apt-get update
apt-get install -y python3 python3-pip python3-dev build-essential
- name: Build and publish
env:
TWINE_USERNAME: __token__
Expand Down
30 changes: 24 additions & 6 deletions .github/workflows/scripts/release_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,33 @@

set -e

yum makecache -y
yum install centos-release-scl -y
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install llvm-toolset-7.0 python3 python3-devel -y
# Update the package list
apt-get update

# Python
# Install necessary packages and build tools
apt-get install -y \
software-properties-common \
python3 \
python3-dev \
python3-pip \
build-essential \
llvm \
clang \
lsb-release

# Add the LLVM repository to get the latest version of LLVM (if needed)
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 14 # Replace 14 with the required version if necessary

# Upgrade pip to the latest version
python3 -m pip install --upgrade pip

# Install Python packaging tools
python3 -m pip install setuptools wheel twine auditwheel

# Publish
# Build Python wheels
python3 -m pip wheel . -w dist/ --no-deps

# Publish the built wheels to PyPI
twine upload --verbose --skip-existing dist/*

0 comments on commit abae817

Please sign in to comment.