diff --git a/.github/workflows/publish_python.yml b/.github/workflows/publish_python.yml index 5b46602..a5614a0 100644 --- a/.github/workflows/publish_python.yml +++ b/.github/workflows/publish_python.yml @@ -8,19 +8,15 @@ 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 @@ -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 diff --git a/lightspark-crypto-python/scripts/generate-linux.sh b/lightspark-crypto-python/scripts/generate-linux.sh index 455f65c..93e51f7 100644 --- a/lightspark-crypto-python/scripts/generate-linux.sh +++ b/lightspark-crypto-python/scripts/generate-linux.sh @@ -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 ..