-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
name: macOS build with GDAL | ||
jobs: | ||
test-macOS: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- 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 | ||
brew install pkg-config | ||
export PKG_CONFIG_PATH=/usr/local/bin/pkgconfig | ||
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 . | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- 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 | ||
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 . |