Skip to content

Commit

Permalink
Try to fix python publish
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlu committed Oct 4, 2024
1 parent 2e63704 commit 4a13dbf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/publish_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,39 @@ jobs:
defaults:
run:
working-directory: lightspark-crypto-python
container:
image: quay.io/pypa/manylinux2014_x86_64
env:
PLAT: manylinux2014_x86_64
PYBIN: "/opt/python/${{ matrix.python }}/bin"
strategy:
matrix:
target: [x86_64]
python:
- cp38-cp38
- cp39-cp39
- cp310-cp310
- cp311-cp311
- cp312-cp312
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: "Generate py source and binaries"
run: bash ./scripts/generate-linux.sh

- name: "Build wheel"
run: ${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_17_x86_64 --verbose
run: python setup.py bdist_wheel --plat-name manylinux_2_17_x86_64 --verbose

- name: "Upload artifacts"
uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions lightspark-crypto-python/scripts/generate-linux.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail
${PYBIN}/python --version
${PYBIN}/pip install -r requirements.txt
python --version
pip install -r requirements.txt

echo "Generating python file..."
cd ..
Expand Down

0 comments on commit 4a13dbf

Please sign in to comment.