Skip to content

Commit 69f4306

Browse files
authored
Fix boost installation script (#1257)
The [coverage action is failing](https://github.com/hazelcast/hazelcast-cpp-client/actions/runs/13248710933/job/36981292995) because the `boost` installation mirror [is dead](https://landing.jfrog.com/reactivate-server/boostorg). Changes: - update installation link to use `boost` archive - refactored script - use long-form command names - fix shellcheck warnings - avoid writing temporary download files to disk Example action [showing `boost` installation success](https://github.com/hazelcast/hazelcast-cpp-client/actions/runs/13249150779/job/36982695856).
1 parent e60c88b commit 69f4306

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/install-boost.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# Installs Boost from source
44
# usage: ./install-boost.sh <version>
55

6-
set -e
6+
set -o errexit ${RUNNER_DEBUG:+-x}
77

8-
if [ "$#" -ne 1 ]; then
8+
if [[ "$#" -ne 1 ]]; then
99
echo "usage: $0 <version>"
1010
exit 1
1111
fi
1212

1313
TARBALL_NAME=boost_$(echo "$1" | tr . _)
1414

15-
curl --silent -Lo $TARBALL_NAME.tar.gz https://boostorg.jfrog.io/artifactory/main/release/$1/source/$TARBALL_NAME.tar.gz
16-
tar xzf $TARBALL_NAME.tar.gz
17-
cd $TARBALL_NAME
15+
curl --silent --location "https://archives.boost.io/release/${1}/source/${TARBALL_NAME}.tar.gz" | tar xzf -
16+
pushd "${TARBALL_NAME}"
1817
./bootstrap.sh
1918
./b2 --with-thread --with-chrono install
20-
cd ..
19+
popd

0 commit comments

Comments
 (0)