2121 strategy :
2222 matrix :
2323 package : [basemap_data, basemap_data_hires]
24- runs-on : ubuntu-latest
24+ runs-on : ubuntu-22.04
2525 steps :
2626 - uses : actions/checkout@v4
2727
4848 needs : [build_data]
4949 strategy :
5050 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]
8052 runs-on : ${{ matrix.os }}
8153 steps :
8254 - uses : actions/checkout@v4
8759 python-version : " 3.9"
8860
8961 - name : Build sdist
90- if : matrix.os == 'ubuntu-latest '
62+ if : matrix.os == 'ubuntu-22.04 '
9163 run : |
9264 cd packages/basemap
9365 python -m pip install build
@@ -96,16 +68,17 @@ jobs:
9668 - name : Build wheels
9769 uses : pypa/cibuildwheel@v2.22.0
9870 env :
99- CIBW_BUILD_VERBOSITY : 1
71+ CIBW_ARCHS : " native "
10072 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 "
10476 CIBW_TEST_EXTRAS : " test"
10577 CIBW_TEST_COMMAND : " python -m pytest {project}/packages/basemap"
10678 CIBW_ENVIRONMENT : >-
10779 GEOS_VERSION="3.6.5"
10880 GEOS_DIR="$(pwd)/extern"
81+ GEOS_NJOBS=4
10982 PIP_PREFER_BINARY=1
11083 PYTHONUNBUFFERED=1
11184 LD_LIBRARY_PATH="${GEOS_DIR}/lib"
12598 check :
12699 name : Check packages
127100 needs : [build_data, build_basemap]
128- runs-on : ubuntu-latest
101+ runs-on : ubuntu-22.04
129102 steps :
130103 - uses : actions/download-artifact@v4
131104 with :
@@ -147,7 +120,7 @@ jobs:
147120 upload :
148121 name : Upload packages
149122 needs : [build_data, build_basemap, check]
150- runs-on : ubuntu-latest
123+ runs-on : ubuntu-22.04
151124 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
152125 steps :
153126 - uses : actions/download-artifact@v4
0 commit comments