Skip to content

Commit ca2f095

Browse files
authored
Merge pull request #620 from cvanelteren/add-macos-build
Add MacOS build
2 parents 17440b0 + b19d33d commit ca2f095

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/build.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,30 @@ jobs:
4848
needs: [build_data]
4949
strategy:
5050
matrix:
51-
os: [ubuntu-latest, windows-latest]
5251
include:
5352
- 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
5468
before_all: >-
5569
echo "Starting BEFORE_ALL script" &&
5670
echo "GEOS_DIR set to: ${GEOS_DIR}" &&
5771
cd "{package}" &&
5872
python -c "import utils; utils.GeosLibrary('${GEOS_VERSION}').build('${GEOS_DIR}', njobs=2)"
5973
- os: windows-latest
74+
arch: x86_64
6075
before_all: >-
6176
echo Starting BEFORE_ALL script &&
6277
echo GEOS_DIR set to: %GEOS_DIR% &&
@@ -83,7 +98,8 @@ jobs:
8398
env:
8499
CIBW_BUILD_VERBOSITY: 1
85100
CIBW_BUILD: "cp39* cp310* cp311* cp312* cp313*"
86-
CIBW_SKIP: "pp* *-musllinux_* *-win32 *-manylinux_i686 *-musllinux_i686 *-aarch64 *-armv7l"
101+
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
102+
CIBW_SKIP: "pp* *-musllinux_* *-win32 *-manylinux_i686 *-musllinux_i686 *-linux_aarch64 *-linux_armv7l"
87103
CIBW_BEFORE_ALL: ${{ matrix.before_all }}
88104
CIBW_TEST_EXTRAS: "test"
89105
CIBW_TEST_COMMAND: "python -m pytest {project}/packages/basemap"
@@ -93,7 +109,8 @@ jobs:
93109
PIP_PREFER_BINARY=1
94110
PYTHONUNBUFFERED=1
95111
LD_LIBRARY_PATH="${GEOS_DIR}/lib"
96-
# LD_LIBRARY_PATH in environment is needed by auditwheel (Linux).
112+
# LD_LIBRARY_PATH in environment is needed by
113+
# auditwheel (Linux) and delocate (MacOS).
97114
with:
98115
package-dir: "packages/basemap"
99116
output-dir: "packages/basemap/dist"

0 commit comments

Comments
 (0)