Skip to content

Commit

Permalink
fix deps download hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
benbovy committed Aug 19, 2024
1 parent 5c91308 commit 2cf32e0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ci/install_3rdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ build_install_dependencies(){
echo "Downloading, building and installing absl-$ABSL_VERSION"

cd $DEPENDENCIES_DIR
curl -OL https://github.com/abseil/abseil-cpp/archive/refs/tags/$ABSL_VERSION.tar.gz
tar xf abseil-cpp-$ABSL_VERSION.tar.gz -C $SRC_DIR
curl -o absl.tar.gz -L https://github.com/abseil/abseil-cpp/archive/refs/tags/$ABSL_VERSION.tar.gz
tar -xf absl.tar.gz -C $SRC_DIR
rm -f absl.tar.gz

cmake -S $SRC_DIR/abseil-cpp-$ABSL_VERSION -B $ABSL_BUILD_DIR \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
Expand All @@ -70,10 +71,11 @@ build_install_dependencies(){
echo "Downloading, building and installing s2geometry-$S2GEOMETRY_VERSION"

cd $DEPENDENCIES_DIR
curl -OL https://github.com/google/s2geometry/archive/refs/tags/v$S2GEOMETRY_VERSION.tar.gz
tar xf s2geometry-v$S2GEOMETRY_VERSION.tar.gz -C $SRC_DIR
curl -o s2geometry.tar.gz -L https://github.com/google/s2geometry/archive/refs/tags/v$S2GEOMETRY_VERSION.tar.gz
tar -xf s2geometry.tar.gz -C $SRC_DIR
rm -f s2geometry.tar.gz

cmake -S $SRC_DIR/s2geometry-v$S2GEOMETRY_VERSION -B $S2GEOMETRY_BUILD_DIR \
cmake -S $SRC_DIR/s2geometry-$S2GEOMETRY_VERSION -B $S2GEOMETRY_BUILD_DIR \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DABSL_ROOT=$INSTALL_DIR \
-DBUILD_TESTS=OFF \
Expand All @@ -89,8 +91,9 @@ build_install_dependencies(){
echo "Downloading, building and installing s2geography-$S2GEOGRAPHY_VERSION"

cd $DEPENDENCIES_DIR
curl -OL https://github.com/paleolimbot/s2geography/archive/refs/tags/$S2GEOGRAPHY_VERSION.tar.gz
tar xf s2geography-$S2GEOGRAPHY_VERSION.tar.gz -C $SRC_DIR
curl -o s2geography.tar.gz -L https://github.com/paleolimbot/s2geography/archive/refs/tags/$S2GEOGRAPHY_VERSION.tar.gz
tar -xf s2geography.tar.gz -C $SRC_DIR
rm -f s2geography.tar.gz

cmake -S $SRC_DIR/s2geography-$S2GEOGRAPHY_VERSION -B $S2GEOGRAPHY_BUILD_DIR \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
Expand Down

0 comments on commit 2cf32e0

Please sign in to comment.