Skip to content

Commit

Permalink
CI: Use pushd/popd when installing GEOS (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Oct 12, 2021
1 parent 96f96fb commit 64af221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ jobs:

- name: Install GEOS
run: |
./ci/install_geos.sh
cd '${{ github.workspace }}'
bash ci/install_geos.sh
- name: Install python dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions ci/install_geos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# This script requires environment variables to be set
# - export GEOS_INSTALL=/path/to/cached/prefix -- to build or use as cache
# - export GEOS_VERSION=3.7.3 or main -- to download and compile
pushd .

set -e

Expand Down Expand Up @@ -61,3 +62,5 @@ else
build_geos
fi
fi

popd

0 comments on commit 64af221

Please sign in to comment.