From 49008fb711885e9ab4c34cbaf72e896daa8c4d6e Mon Sep 17 00:00:00 2001 From: Zhen Lu Date: Fri, 4 Oct 2024 12:00:32 -0700 Subject: [PATCH] Try to fix python publish --- .github/workflows/publish_python.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish_python.yml b/.github/workflows/publish_python.yml index 5b46602..81150a9 100644 --- a/.github/workflows/publish_python.yml +++ b/.github/workflows/publish_python.yml @@ -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 @@ -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