-
Notifications
You must be signed in to change notification settings - Fork 19
45 lines (44 loc) · 1.26 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- master
pull_request:
branches:
- master
name: macOS build with GDAL
jobs:
test-macOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install GDAL
run: brew install gdal
- name: Set up GDAL
run: |
GDAL_VER=$(find /usr/local/Cellar/gdal/ -name "lib" | awk -F"/" '{print $7}')
GDAL_LDPATH=/usr/local/Cellar/gdal/$GDAL_VER/lib/
export LIBRARY_PATH=$GDAL_LDPATH
echo $LIBRARY_PATH
- name: Test GDAL installation
run: |
gdalinfo --version
# - name: Install cartopy
# run: |
# brew install proj geos
# pip3 install shapely --no-binary shapely numpy
# brew install pkg-config
# export PKG_CONFIG_PATH=/usr/local/bin/pkgconfig
# export CFLAGS="-I/usr/local/include"
# pip3 install cartopy
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install -r requirements.txt
pip install .