From e66f333c4dda763b6144f0956277a590525d4c3c Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Wed, 26 Jun 2024 11:05:02 +0200 Subject: [PATCH 1/2] feat: add manylinux2014 for x86_64 --- .github/workflows/deploy.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4858009e..6c6c5d78 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest # CentOS 7 64 bits Docker Hub image that 'build-linux-wheels' executes in. # See https://github.com/pypa/manylinux for this particular container: - # * CPython 3.7, 3.8, 3.9, 3.10 and 3.11 installed in /opt/python/- + # * CPython 3.8, 3.9, 3.10, 3.11 and 3.12 installed in /opt/python/- container: quay.io/pypa/manylinux_2_28_x86_64:latest steps: - name: "Checkout the full project" @@ -34,12 +34,38 @@ jobs: # "${PYBIN}/maturin" publish -i "${PYBIN}/python" --no-sdist --skip-existing --compatibility musllinux_1_2 done + build-linux64-wheels-manylinux2014: + runs-on: ubuntu-20.04 + # CentOS 7 64 bits Docker Hub image that 'build-linux-wheels' executes in. + # See https://github.com/pypa/manylinux for this particular container: + # * CPython 3.8, 3.9, 3.10, 3.11 and 3.12 installed in /opt/python/- + container: quay.io/pypa/manylinux2014_x86_64:latest + steps: + - name: "Checkout the full project" + uses: actions/checkout@v3 + - name: "Install Rust" + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + - name: "Build and publish wheels" + shell: bash + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN_FXP }} + run: | + source $HOME/.cargo/env + rustup target add wasm32-unknown-emscripten + for PYBIN in /opt/python/cp3{8,9,10,11,12}-*/bin; do + "${PYBIN}/pip" install --upgrade pip + "${PYBIN}/pip" install maturin + "${PYBIN}/maturin" publish -i "${PYBIN}/python" --skip-existing --compatibility manylinux_2014 + # "${PYBIN}/maturin" publish -i "${PYBIN}/python" --no-sdist --skip-existing --compatibility musllinux_1_2 + done + # Linux is specific: because of manylinux, we have to use a docker file build-linux32-wheels: runs-on: ubuntu-latest # CentOS 7 32 bits Docker Hub image that 'build-linux-wheels' executes in. # See https://github.com/pypa/manylinux for this particular container: - # * CPython 3.7, 3.8, 3.9, 3.10 and 3.11, installed in /opt/python/- + # * CPython 3.7, 3.8, 3.9, 3.10, 3.11, and 3.12 installed in /opt/python/- env: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN_FXP }} img: quay.io/pypa/manylinux2014_i686 @@ -95,7 +121,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: # See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast - # run all matrix jobs even if on is failling (default behaviour is to stop all jobs) + # run all matrix jobs even if on is failing (default behavior is to stop all jobs) fail-fast: false matrix: os: [windows-latest] From 5cb7054335ae57d3e95535b983bb5d7fe9f099cb Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Wed, 26 Jun 2024 11:27:34 +0200 Subject: [PATCH 2/2] fix: remove wasm target when not needed --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c6c5d78..fa5a6fad 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,7 +26,6 @@ jobs: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN_FXP }} run: | source $HOME/.cargo/env - rustup target add wasm32-unknown-emscripten for PYBIN in /opt/python/cp3{8,9,10,11,12}-*/bin; do "${PYBIN}/pip" install --upgrade pip "${PYBIN}/pip" install maturin @@ -52,7 +51,6 @@ jobs: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN_FXP }} run: | source $HOME/.cargo/env - rustup target add wasm32-unknown-emscripten for PYBIN in /opt/python/cp3{8,9,10,11,12}-*/bin; do "${PYBIN}/pip" install --upgrade pip "${PYBIN}/pip" install maturin