Remove 32-bit. Rework cross-compilation.
This commit is contained in:
parent
d15baf015f
commit
388e73d1fb
1 changed files with 26 additions and 25 deletions
51
.github/workflows/build-test-pypi.yml
vendored
51
.github/workflows/build-test-pypi.yml
vendored
|
@ -42,44 +42,45 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest]
|
||||||
bitness: [32, 64]
|
archs: ["x86_64, i686", "aarch64", "ppc64le", "s390x"]
|
||||||
|
build: ["manylinux", "musllinux"]
|
||||||
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
bitness: 64
|
archs: "AMD64"
|
||||||
platform_id: win_amd64
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
bitness: 32
|
archs: "x86"
|
||||||
platform_id: win32
|
- os: windows-latest
|
||||||
- os: ubuntu-latest
|
archs: "ARM64"
|
||||||
bitness: 64
|
- os: macos-13
|
||||||
platform_id: manylinux_x86_64
|
archs: "x86_64"
|
||||||
- os: ubuntu-latest
|
- os: macos-14
|
||||||
bitness: 32
|
archs: "arm64"
|
||||||
platform_id: manylinux_i686
|
|
||||||
- os: macos-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: macosx_x86_64
|
|
||||||
exclude:
|
|
||||||
- os: macos-latest
|
|
||||||
bitness: 32
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Get Python Version Name
|
#- name: Get Python Version Name
|
||||||
uses: mad9000/actions-find-and-replace-string@5
|
# uses: mad9000/actions-find-and-replace-string@5
|
||||||
id: pythonversion
|
# id: pythonversion
|
||||||
|
# with:
|
||||||
|
# source: ${{ matrix.python }}
|
||||||
|
# find: '.'
|
||||||
|
# replace: ''
|
||||||
|
- name: "Install Python 3.8 universal2 on macOS arm64"
|
||||||
|
if: runner.os == 'macOS' && runner.arch == 'arm64'
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
env:
|
||||||
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
||||||
with:
|
with:
|
||||||
source: ${{ matrix.python }}
|
python-version: 3.8
|
||||||
find: '.'
|
|
||||||
replace: ''
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: joerick/cibuildwheel@v2.20.0
|
uses: joerick/cibuildwheel@v2.20.0
|
||||||
env:
|
env:
|
||||||
CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }}
|
CIBW_ARCHS: "${{ matrix.archs }}"
|
||||||
|
CIBW_BUILD: "${{ matrix.build && '*-' || ''}}${{ matrix.build }}*"
|
||||||
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
|
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
|
||||||
- name: Upload wheels to artifact container
|
- name: Upload wheels to artifact container
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
Loading…
Reference in a new issue