Skip to content

Commit

Permalink
ci: Check the geos commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Feb 25, 2022
1 parent 089633f commit 86f20b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ jobs:
echo "export BOOST_ROOT='$(echo ${LOCAL_INSTALL_PATH})'" >> ~/.bash_profile
- name: Build and install geos
if: matrix.os != 'macos' && matrix.geos != 'none'
env:
GEOS: ${{ matrix.geos }}
run: |
if [ ! -d "${LOCAL_INSTALL_PATH}/include/geos" ]; then
if ! test -d "${LOCAL_INSTALL_PATH}/include/geos" || ! test -f ${LOCAL_INSTALL_PATH}/bin/geos.version || ! grep -qx "$(git ls-remote https://github.com/libgeos/geos.git heads/main)" ${LOCAL_INSTALL_PATH}/bin/geos.version; then
git ls-remote https://github.com/libgeos/geos.git heads/main > ${LOCAL_INSTALL_PATH}/bin/geos.version
echo "export UPDATE_CACHE='true'" >> ~/.bash_profile
pushd ~
git clone --depth 1 --branch main https://github.com/libgeos/geos.git
Expand Down

0 comments on commit 86f20b1

Please sign in to comment.