21
21
strategy :
22
22
matrix :
23
23
package : [basemap_data, basemap_data_hires]
24
- runs-on : ubuntu-latest
24
+ runs-on : ubuntu-22.04
25
25
steps :
26
26
- uses : actions/checkout@v4
27
27
48
48
needs : [build_data]
49
49
strategy :
50
50
matrix :
51
- include :
52
- - os : ubuntu-latest
53
- arch : x86_64
54
- before_all : >-
55
- echo "Starting BEFORE_ALL script" &&
56
- echo "GEOS_DIR set to: ${GEOS_DIR}" &&
57
- cd "{package}" &&
58
- python -c "import utils; utils.GeosLibrary('${GEOS_VERSION}').build('${GEOS_DIR}', njobs=2)"
59
- - os : macos-13
60
- arch : x86_64
61
- before_all : >-
62
- echo "Starting BEFORE_ALL script" &&
63
- echo "GEOS_DIR set to: ${GEOS_DIR}" &&
64
- cd "{package}" &&
65
- python -c "import utils; utils.GeosLibrary('${GEOS_VERSION}').build('${GEOS_DIR}', njobs=2)"
66
- - os : macos-14
67
- arch : arm64
68
- before_all : >-
69
- echo "Starting BEFORE_ALL script" &&
70
- echo "GEOS_DIR set to: ${GEOS_DIR}" &&
71
- cd "{package}" &&
72
- python -c "import utils; utils.GeosLibrary('${GEOS_VERSION}').build('${GEOS_DIR}', njobs=2)"
73
- - os : windows-latest
74
- arch : x86_64
75
- before_all : >-
76
- echo Starting BEFORE_ALL script &&
77
- echo GEOS_DIR set to: %GEOS_DIR% &&
78
- cd "{package}" &&
79
- python -c "import utils; utils.GeosLibrary('%GEOS_VERSION%').build('%GEOS_DIR%', njobs=2)"
51
+ os : [ubuntu-22.04, windows-2019, macos-13, macos-14]
80
52
runs-on : ${{ matrix.os }}
81
53
steps :
82
54
- uses : actions/checkout@v4
87
59
python-version : " 3.9"
88
60
89
61
- name : Build sdist
90
- if : matrix.os == 'ubuntu-latest '
62
+ if : matrix.os == 'ubuntu-22.04 '
91
63
run : |
92
64
cd packages/basemap
93
65
python -m pip install build
@@ -96,16 +68,17 @@ jobs:
96
68
- name : Build wheels
97
69
98
70
env :
99
- CIBW_BUILD_VERBOSITY : 1
71
+ CIBW_ARCHS : " native "
100
72
CIBW_BUILD : " cp39* cp310* cp311* cp312* cp313*"
101
- CIBW_ARCHS_MACOS : ${{ matrix.arch }}
102
- CIBW_SKIP : " pp* * -musllinux_* *-win32 *-manylinux_i686 *-musllinux_i686 *-linux_aarch64 *-linux_armv7l "
103
- CIBW_BEFORE_ALL : ${{ matrix.before_all }}
73
+ CIBW_BUILD_VERBOSITY : 1
74
+ CIBW_SKIP : " * -musllinux_*"
75
+ CIBW_BEFORE_ALL : " python {project}/.github/workflows/run_before_all.py "
104
76
CIBW_TEST_EXTRAS : " test"
105
77
CIBW_TEST_COMMAND : " python -m pytest {project}/packages/basemap"
106
78
CIBW_ENVIRONMENT : >-
107
79
GEOS_VERSION="3.6.5"
108
80
GEOS_DIR="$(pwd)/extern"
81
+ GEOS_NJOBS=4
109
82
PIP_PREFER_BINARY=1
110
83
PYTHONUNBUFFERED=1
111
84
LD_LIBRARY_PATH="${GEOS_DIR}/lib"
125
98
check :
126
99
name : Check packages
127
100
needs : [build_data, build_basemap]
128
- runs-on : ubuntu-latest
101
+ runs-on : ubuntu-22.04
129
102
steps :
130
103
- uses : actions/download-artifact@v4
131
104
with :
@@ -147,7 +120,7 @@ jobs:
147
120
upload :
148
121
name : Upload packages
149
122
needs : [build_data, build_basemap, check]
150
- runs-on : ubuntu-latest
123
+ runs-on : ubuntu-22.04
151
124
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
152
125
steps :
153
126
- uses : actions/download-artifact@v4
0 commit comments