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 49008fb
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/publish_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ 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
Expand All @@ -28,12 +24,23 @@ jobs:
- 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

0 comments on commit 49008fb

Please sign in to comment.