Skip to content

Commit 93b8e5b

Browse files
committed
add parameter
1 parent 3de20c3 commit 93b8e5b

1 file changed

Lines changed: 59 additions & 51 deletions

File tree

.github/workflows/python_packages.yml

Lines changed: 59 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v6
1919

20-
- uses: actions/setup-python@v3
20+
- uses: actions/setup-python@v6
2121
name: Install Python
2222
with:
23-
python-version: '3.9'
23+
python-version: "3.9"
2424

2525
- name: Build wheels
2626
uses: pypa/cibuildwheel@v3.3.1
2727

28-
- uses: actions/upload-artifact@v4
28+
- uses: actions/upload-artifact@v7
2929
with:
3030
path: ./wheelhouse/*.whl
3131
name: dist-manylinux_2_28
@@ -40,17 +40,17 @@ jobs:
4040
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
4141

4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v6
4444

45-
- uses: actions/setup-python@v3
45+
- uses: actions/setup-python@v6
4646
name: Install Python
4747
with:
48-
python-version: '3.9'
48+
python-version: "3.9"
4949

5050
- name: Build wheels
5151
uses: pypa/cibuildwheel@v3.3.1
5252

53-
- uses: actions/upload-artifact@v4
53+
- uses: actions/upload-artifact@v7
5454
with:
5555
path: ./wheelhouse/*.whl
5656
name: dist-musllinux_x86_64
@@ -66,12 +66,12 @@ jobs:
6666
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --add-path C:/vcpkg/installed/x64-windows/bin --no-mangle-all -v -w {dest_dir} {wheel}"
6767

6868
steps:
69-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v6
7070

71-
- uses: actions/setup-python@v3
71+
- uses: actions/setup-python@v6
7272
name: Install Python
7373
with:
74-
python-version: '3.9'
74+
python-version: "3.9"
7575

7676
- name: Install Deps
7777
run: |
@@ -83,7 +83,7 @@ jobs:
8383
- name: Build wheels
8484
uses: pypa/cibuildwheel@v3.3.1
8585

86-
- uses: actions/upload-artifact@v4
86+
- uses: actions/upload-artifact@v7
8787
with:
8888
path: ./wheelhouse/*.whl
8989
name: dist-windows
@@ -98,15 +98,15 @@ jobs:
9898
CIBW_ARCHS_WINDOWS: x86
9999
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
100100
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --add-path C:/vcpkg/installed/x86-windows/bin --no-mangle-all -v -w {dest_dir} {wheel}"
101-
CIBW_CONFIG_SETTINGS_WINDOWS: "cmake.define.CMAKE_GENERATOR_PLATFORM=Win32"
101+
CIBW_CONFIG_SETTINGS_WINDOWS: "cmake.define.CMAKE_GENERATOR_PLATFORM=Win32;cmake.args=-A Win32"
102102

103103
steps:
104-
- uses: actions/checkout@v3
104+
- uses: actions/checkout@v6
105105

106-
- uses: actions/setup-python@v3
106+
- uses: actions/setup-python@v6
107107
name: Install Python
108108
with:
109-
python-version: '3.9'
109+
python-version: "3.9"
110110
architecture: x86
111111

112112
- name: Install Deps
@@ -119,7 +119,7 @@ jobs:
119119
- name: Build wheels
120120
uses: pypa/cibuildwheel@v3.3.1
121121

122-
- uses: actions/upload-artifact@v4
122+
- uses: actions/upload-artifact@v7
123123
with:
124124
path: ./wheelhouse/*.whl
125125
name: dist-windows_32
@@ -128,24 +128,24 @@ jobs:
128128
name: Build wheels on macos-15 (arm64)
129129
runs-on: macos-15
130130
env:
131-
SQLite3_ROOT: ${{ github.workspace }}/libs
132-
MACOSX_DEPLOYMENT_TARGET: '14.0'
133-
CIBW_SKIP: ""
134-
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
135-
CIBW_BEFORE_ALL: >
136-
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
137-
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
138-
cd sqlite-autoconf-3460100 &&
139-
CC=clang CFLAGS="-arch arm64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
140-
make install
131+
SQLite3_ROOT: ${{ github.workspace }}/libs
132+
MACOSX_DEPLOYMENT_TARGET: "14.0"
133+
CIBW_SKIP: ""
134+
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
135+
CIBW_BEFORE_ALL: >
136+
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
137+
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
138+
cd sqlite-autoconf-3460100 &&
139+
CC=clang CFLAGS="-arch arm64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
140+
make install
141141
142142
steps:
143-
- uses: actions/checkout@v3
143+
- uses: actions/checkout@v6
144144

145-
- uses: actions/setup-python@v3
145+
- uses: actions/setup-python@v6
146146
name: Install Python
147147
with:
148-
python-version: '3.9'
148+
python-version: "3.9"
149149

150150
- name: Install Deps
151151
run: |
@@ -154,7 +154,7 @@ jobs:
154154
- name: Build wheels
155155
uses: pypa/cibuildwheel@v3.3.1
156156

157-
- uses: actions/upload-artifact@v4
157+
- uses: actions/upload-artifact@v7
158158
with:
159159
path: ./wheelhouse/*.whl
160160
name: dist-macos_arm64
@@ -163,24 +163,24 @@ jobs:
163163
name: Build wheels on macos-15 (Intel)
164164
runs-on: macos-15-intel
165165
env:
166-
SQLite3_ROOT: ${{ github.workspace }}/libs
167-
MACOSX_DEPLOYMENT_TARGET: '10.9'
168-
CIBW_SKIP: ""
169-
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
170-
CIBW_BEFORE_ALL: >
171-
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
172-
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
173-
cd sqlite-autoconf-3460100 &&
174-
CC=clang CFLAGS="-arch x86_64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
175-
make install
166+
SQLite3_ROOT: ${{ github.workspace }}/libs
167+
MACOSX_DEPLOYMENT_TARGET: "10.9"
168+
CIBW_SKIP: ""
169+
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
170+
CIBW_BEFORE_ALL: >
171+
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
172+
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
173+
cd sqlite-autoconf-3460100 &&
174+
CC=clang CFLAGS="-arch x86_64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
175+
make install
176176
177177
steps:
178-
- uses: actions/checkout@v3
178+
- uses: actions/checkout@v6
179179

180-
- uses: actions/setup-python@v3
180+
- uses: actions/setup-python@v6
181181
name: Install Python
182182
with:
183-
python-version: '3.9'
183+
python-version: "3.9"
184184

185185
- name: Install Deps
186186
run: |
@@ -189,7 +189,7 @@ jobs:
189189
- name: Build wheels
190190
uses: pypa/cibuildwheel@v3.3.1
191191

192-
- uses: actions/upload-artifact@v4
192+
- uses: actions/upload-artifact@v7
193193
with:
194194
path: ./wheelhouse/*.whl
195195
name: dist-macos
@@ -198,12 +198,12 @@ jobs:
198198
name: Build source distribution
199199
runs-on: ubuntu-latest
200200
steps:
201-
- uses: actions/checkout@v3
201+
- uses: actions/checkout@v6
202202

203-
- uses: actions/setup-python@v3
203+
- uses: actions/setup-python@v6
204204
name: Install Python
205205
with:
206-
python-version: '3.9'
206+
python-version: "3.9"
207207

208208
- name: Install deps
209209
run: |
@@ -213,17 +213,25 @@ jobs:
213213
- name: Build sdist
214214
run: python setup.py sdist
215215

216-
- uses: actions/upload-artifact@v4
216+
- uses: actions/upload-artifact@v7
217217
with:
218218
path: dist/*.tar.gz
219219
name: dist-source
220220

221221
upload_pypi:
222-
needs: [build_windows_wheels, build_linux_wheels_manylinux_2_28, build_linux_wheels_musllinux_x86_64, build_macos_wheels, build_macos_arm64_wheels, build_sdist]
222+
needs:
223+
[
224+
build_windows_wheels,
225+
build_linux_wheels_manylinux_2_28,
226+
build_linux_wheels_musllinux_x86_64,
227+
build_macos_wheels,
228+
build_macos_arm64_wheels,
229+
build_sdist,
230+
]
223231
runs-on: ubuntu-latest
224232
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
225233
steps:
226-
- uses: actions/download-artifact@v4
234+
- uses: actions/download-artifact@v8
227235
with:
228236
pattern: dist-*
229237
merge-multiple: true

0 commit comments

Comments
 (0)