Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 31 additions & 71 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,27 @@ jobs:
fail-fast: false
matrix:
include:
# Windows 32-bit
- os: windows-2019
python: 38
platform_id: win32
- os: windows-2019
python: 39
platform_id: win32
- os: windows-2019
python: 310
platform_id: win32
- os: windows-2019
python: 311
platform_id: win32
- os: windows-2019
python: 312
platform_id: win32
- os: windows-2019
python: 313
platform_id: win32

# Windows 64-bit
- os: windows-2019
python: 38
platform_id: win_amd64
- os: windows-2019
- os: windows-2022
python: 39
platform_id: win_amd64
- os: windows-2019
- os: windows-2022
python: 310
platform_id: win_amd64
- os: windows-2019
- os: windows-2022
python: 311
platform_id: win_amd64
- os: windows-2019
- os: windows-2022
python: 312
platform_id: win_amd64
- os: windows-2019
- os: windows-2022
python: 313
platform_id: win_amd64

# Linux 32-bit
- os: ubuntu-latest
python: 38
platform_id: manylinux_i686
- os: ubuntu-latest
python: 39
platform_id: manylinux_i686
- os: ubuntu-latest
python: 310
platform_id: manylinux_i686
- os: ubuntu-latest
python: 311
platform_id: manylinux_i686
- os: ubuntu-latest
python: 312
platform_id: manylinux_i686
- os: ubuntu-latest
python: 313
platform_id: manylinux_i686
- os: windows-2022
python: 314
platform_id: win_amd64

# Linux 64-bit
- os: ubuntu-latest
python: 38
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: 39
platform_id: manylinux_x86_64
Expand All @@ -89,11 +46,11 @@ jobs:
- os: ubuntu-latest
python: 313
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: 314
platform_id: manylinux_x86_64

# Linux aarch64
- os: ubuntu-latest
python: 38
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 39
platform_id: manylinux_aarch64
Expand All @@ -109,13 +66,11 @@ jobs:
- os: ubuntu-latest
python: 313
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 314
platform_id: manylinux_aarch64

# macOS on Intel 64-bit
- os: macos-latest
python: 38
arch: x86_64
platform_id: macosx_x86_64
macosx_deployment_target: "10.9"
- os: macos-latest
python: 39
arch: x86_64
Expand All @@ -136,19 +91,18 @@ jobs:
arch: x86_64
platform_id: macosx_x86_64
macosx_deployment_target: "10.9"

- os: macos-latest
python: 313
arch: x86_64
platform_id: macosx_x86_64
macosx_deployment_target: "10.9"
- os: macos-latest
python: 314
arch: x86_64
platform_id: macosx_x86_64
macosx_deployment_target: "10.9"

# macOS on Apple M1 64-bit
- os: macos-latest
python: 38
arch: arm64
platform_id: macosx_arm64
macosx_deployment_target: "11.0"
- os: macos-latest
python: 39
arch: arm64
Expand All @@ -174,6 +128,11 @@ jobs:
arch: arm64
platform_id: macosx_arm64
macosx_deployment_target: "11.0"
- os: macos-latest
python: 314
arch: arm64
platform_id: macosx_arm64
macosx_deployment_target: "11.0"

steps:
- uses: actions/checkout@v4
Expand All @@ -189,7 +148,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python host for cibuildwheel
with:
python-version: '3.9'
python-version: '3.11'

# Visual Studio
- name: Set up MSVC x86
Expand Down Expand Up @@ -270,7 +229,7 @@ jobs:
popd

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.20.0
run: python -m pip install cibuildwheel==3.0.1

- name: Build wheels
# to supply options, put them in 'env', like:
Expand All @@ -283,15 +242,16 @@ jobs:

# Include latest Python beta
CIBW_PRERELEASE_PYTHONS: True
CIBW_ENABLE: cpython-prerelease

CIBW_BUILD_FRONTEND: build

CIBW_BEFORE_ALL_LINUX: |
yum install -y gcc-c++ pcre-devel openssl-devel
/opt/python/cp38-cp38/bin/python -m pip install ninja
ln -s /opt/python/cp38-cp38/bin/ninja /usr/bin/ninja
/opt/python/cp311-cp311/bin/python -m pip install ninja
ln -s /opt/python/cp311-cp311/bin/ninja /usr/bin/ninja
if [[ ! -e $(command -v swig) ]]; then
curl -L https://sourceforge.net/projects/swig/files/swig/swig-4.2.1/swig-4.2.1.tar.gz/download --output /tmp/swig.tar.gz
curl -L https://sourceforge.net/projects/swig/files/swig/swig-4.3.1/swig-4.3.1.tar.gz/download --output /tmp/swig.tar.gz
mkdir /tmp/swig
tar -xvzf /tmp/swig.tar.gz -C /tmp/swig --strip-components 1 &> /dev/null
pushd /tmp/swig
Expand Down Expand Up @@ -337,7 +297,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python host for sdist
with:
python-version: '3.9'
python-version: '3.11'

- name: Create sdist
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requires = [

[project]
name = "python-gdcm"
version = "3.0.25"
version = "3.0.26"
authors = [
{ name = "Thiago Franco de Moraes", email = "[email protected]" },
]
Expand Down
Loading