Skip to content

Commit 1a99575

Browse files
committed
use env variable for geo_version
1 parent ac4b5e7 commit 1a99575

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
name: Build and Test
2+
3+
env:
4+
PKGDIR: "packages/basemap"
5+
CIBW_BUILD_VERBOSITY: 1
6+
PYTHONUNBUFFERED: "1"
7+
PYTHONWARNINGS: "ignore:DEPRECATION"
8+
GEO_VERSION: "3.6.5"
9+
210
on:
311
push:
412
branches: [main, master, develop]
@@ -41,16 +49,8 @@ jobs:
4149
env:
4250
CIBW_SKIP: "pp* *-musllinux*"
4351
CIBW_BEFORE_BUILD: >
44-
pip install --upgrade pip
45-
pip install numpy cython
46-
python -c "import utils; utils.GeosLibrary('3.6.5').build('extern', njobs=16)"
47-
CIBW_ENVIRONMENT_WINDOWS: >
48-
GEOS_DIR=${{ env.GEOS_DIR }}
49-
SETUPTOOLS_USE_DISTUTILS=stdlib
50-
CIBW_ENVIRONMENT_LINUX: >
51-
GEOS_DIR={project}/extern
52-
SETUPTOOLS_USE_DISTUTILS=stdlib
53-
CIBW_ENVIRONMENT_MACOS: >
52+
python -c "import utils; utils.GeosLibrary(${{ env.GEO_VERSION }}).build('extern', njobs=16)"
53+
CIBW_ENVIRONMENT: >
5454
GEOS_DIR={project}/extern
5555
SETUPTOOLS_USE_DISTUTILS=stdlib
5656
CIBW_TEST_COMMAND: >

0 commit comments

Comments
 (0)