Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a check to the install.boost file #1171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .ci/install.boost
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@ version=1.74.0
version_=${version//./_}

echo $version $version_
file=https://archives.boost.io/release/${version}/source/boost_${version_}.tar.gz
# gh actions comes with jq installed, here we are reading the sha256 to be sure that we are downloading the right file
expectedSha256=$(curl "${file}.json" 2> /dev/null | jq -r ".sha256")

wget https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${version_}.tar.gz > /dev/null 2> /dev/null
tar xzf boost_${version_}.tar.gz
wget "${file}" > /dev/null 2> /dev/null
#checks sha256 of the file (this can be hardcoded instead of downloading it whith the json)
sha256sum -c <<< "$expectedSha256 boost_${version_}.tar.gz" || exit 1

#this was the original link
# wget https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${version_}.tar.gz > /dev/null 2> /dev/null

cd boost_${version_}
tar xzf boost_${version_}.tar.gz
cd boost_${version_} || exit 1

./bootstrap.sh --with-libraries=serialization --prefix="$HOME/opt"

Expand All @@ -26,4 +34,3 @@ else
# debug build:
./b2 debug cxxflags=-D_GLIBCXX_DEBUG install -j 4 > /dev/null 2> /dev/null
fi

Loading