Skip to content

Commit 97c7180

Browse files
committed
IGNITE-27158 Update DB API GitHub Action
1 parent 1de35c1 commit 97c7180

File tree

1 file changed

+29
-39
lines changed

1 file changed

+29
-39
lines changed

.github/workflows/python_dbapi_wheels.yml

Lines changed: 29 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
with:
1818
sparse-checkout: |
1919
modules/platforms/
2020
21-
- uses: actions/setup-python@v5
21+
- uses: actions/setup-python@v6
22+
with:
23+
python-version: 3.11
2224

2325
- name: Install setuptools
24-
run: python -m pip install setuptools
26+
run: python -m pip install --upgrade setuptools packaging>=24.2
2527

2628
- name: Copy C++ sources
2729
run: cp -r modules/platforms/cpp modules/platforms/python/
@@ -40,46 +42,34 @@ jobs:
4042
runs-on: ${{ matrix.os }}
4143
strategy:
4244
matrix:
43-
# macos-13 is an intel runner, macos-14 is apple silicon
44-
os: [ubuntu-22.04, ubuntu-24.04-arm, windows-2022, macos-13, macos-14]
45+
include:
46+
- os: macos-latest
47+
arch: arm64
48+
macos_deployment_target: "14.0"
49+
50+
- os: macos-15-intel
51+
arch: x86_64
52+
macos_deployment_target: "15.0"
53+
54+
- os: ubuntu-latest
55+
arch: auto64
56+
cibw_build: "cp31{0,1,2,3,4}-manylinux*"
57+
58+
- os: windows-latest
59+
arch: AMD64
4560

4661
steps:
47-
- uses: actions/checkout@v4
62+
- uses: actions/checkout@v6
4863
with:
4964
sparse-checkout: |
5065
modules/platforms/
5166
52-
- uses: actions/setup-python@v5
67+
- uses: actions/setup-python@v6
68+
with:
69+
python-version: 3.11
5370

5471
- name: Install cibuildwheel
55-
run: python -m pip install cibuildwheel==2.23.1
56-
57-
- name: Build wheels macOS 14
58-
if: matrix.os == 'macos-14'
59-
run: python -m cibuildwheel --output-dir modules/platforms/python/wheels modules/platforms/python
60-
env:
61-
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
62-
CIBW_ARCHS: arm64
63-
MACOSX_DEPLOYMENT_TARGET: 14.0
64-
CIBW_BUILD_VERBOSITY: 1
65-
66-
- name: Build wheels macOS 13
67-
if: matrix.os == 'macos-13'
68-
run: python -m cibuildwheel --output-dir modules/platforms/python/wheels modules/platforms/python
69-
env:
70-
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
71-
CIBW_ARCHS: x86_64
72-
MACOSX_DEPLOYMENT_TARGET: 13.0
73-
CIBW_BUILD_VERBOSITY: 1
74-
75-
- name: Build wheels Linux
76-
if: runner.os == 'Linux'
77-
run: python -m cibuildwheel --output-dir modules/platforms/python/wheels modules/platforms/python
78-
env:
79-
CIBW_BUILD: cp39-manylinux* cp31{0,1,2,3}-manylinux*
80-
CIBW_ARCHS: auto64
81-
CIBW_BEFORE_ALL: yum -y install openssl-devel
82-
CIBW_BUILD_VERBOSITY: 1
72+
run: python -m pip install cibuildwheel==3.3.0
8373

8474
- name: Install OpenSSL (Windows)
8575
if: runner.os == 'Windows'
@@ -88,12 +78,12 @@ jobs:
8878
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
8979
vcpkg install openssl:x64-windows-static-md
9080
91-
- name: Build wheels Windows
92-
if: runner.os == 'Windows'
81+
- name: Build wheels ${{ matrix.os }}
9382
run: python -m cibuildwheel --output-dir modules/platforms/python/wheels modules/platforms/python
9483
env:
95-
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
96-
CIBW_ARCHS: AMD64
84+
CIBW_BUILD: ${{ matrix.cibw_build || 'cp31{0,1,2,3,4}-*' }}
85+
CIBW_ARCHS: ${{ matrix.arch }}
86+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target || '' }}
9787
CIBW_BUILD_VERBOSITY: 1
9888

9989
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)