Remove external boost references from CI build (#4127)
This commit is contained in:
parent
dacd0bea30
commit
92e0b64c62
14 changed files with 4 additions and 187 deletions
2
.github/workflows/beta_artifacts.yml
vendored
2
.github/workflows/beta_artifacts.yml
vendored
|
|
@ -54,8 +54,6 @@ jobs:
|
||||||
needs: build_auto_setup_job
|
needs: build_auto_setup_job
|
||||||
runs-on: macOS-11
|
runs-on: macOS-11
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
env:
|
|
||||||
BOOST_ROOT: /tmp/boost
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set the tag and the pre-release version
|
- name: Set the tag and the pre-release version
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,6 @@ jobs:
|
||||||
needs: build_auto_setup_job
|
needs: build_auto_setup_job
|
||||||
runs-on: macOS-11
|
runs-on: macOS-11
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
env:
|
|
||||||
BOOST_ROOT: /tmp/boost
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set the tag and the pre-release version
|
- name: Set the tag and the pre-release version
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
|
@ -16,7 +16,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
LCOV: 1
|
LCOV: 1
|
||||||
COMPILER: gcc
|
COMPILER: gcc
|
||||||
BOOST_ROOT: /tmp/boost
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -33,7 +32,6 @@ jobs:
|
||||||
sudo apt-get update -qq && sudo apt-get install -yqq build-essential g++ wget python zlib1g-dev qt5-default \
|
sudo apt-get update -qq && sudo apt-get install -yqq build-essential g++ wget python zlib1g-dev qt5-default \
|
||||||
valgrind xorg xvfb xauth xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic ocl-icd-opencl-dev \
|
valgrind xorg xvfb xauth xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic ocl-icd-opencl-dev \
|
||||||
git lcov python3-pip
|
git lcov python3-pip
|
||||||
util/build_prep/fetch_boost.sh
|
|
||||||
wget -O cmake_install.sh https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-Linux-x86_64.sh
|
wget -O cmake_install.sh https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-Linux-x86_64.sh
|
||||||
chmod +x cmake_install.sh
|
chmod +x cmake_install.sh
|
||||||
sudo ./cmake_install.sh --prefix=/usr --exclude-subdir --skip-license
|
sudo ./cmake_install.sh --prefix=/usr --exclude-subdir --skip-license
|
||||||
|
|
|
||||||
2
.github/workflows/live_artifacts.yml
vendored
2
.github/workflows/live_artifacts.yml
vendored
|
|
@ -17,8 +17,6 @@ jobs:
|
||||||
osx_job:
|
osx_job:
|
||||||
runs-on: macOS-11
|
runs-on: macOS-11
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
env:
|
|
||||||
BOOST_ROOT: /tmp/boost
|
|
||||||
steps:
|
steps:
|
||||||
- name: tag
|
- name: tag
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/test_network_artifacts.yml
vendored
2
.github/workflows/test_network_artifacts.yml
vendored
|
|
@ -18,8 +18,6 @@ jobs:
|
||||||
osx_job:
|
osx_job:
|
||||||
runs-on: macOS-11
|
runs-on: macOS-11
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
env:
|
|
||||||
BOOST_ROOT: /tmp/boost
|
|
||||||
steps:
|
steps:
|
||||||
- name: tag
|
- name: tag
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
1
.github/workflows/unit_tests.yml
vendored
1
.github/workflows/unit_tests.yml
vendored
|
|
@ -16,7 +16,6 @@ jobs:
|
||||||
RELEASE:
|
RELEASE:
|
||||||
- ${{ startsWith(github.ref, 'refs/tags/') }}
|
- ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
env:
|
env:
|
||||||
BOOST_ROOT: /tmp/boost
|
|
||||||
TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }}
|
TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }}
|
||||||
RELEASE: ${{ matrix.RELEASE }}
|
RELEASE: ${{ matrix.RELEASE }}
|
||||||
runs-on: macOS-11
|
runs-on: macOS-11
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,4 @@
|
||||||
brew update
|
brew update
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
brew cask install xquartz
|
brew cask install xquartz
|
||||||
sudo util/build_prep/fetch_boost.sh
|
|
||||||
util/build_prep/macosx/build_qt.sh
|
util/build_prep/macosx/build_qt.sh
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,6 @@ cmake \
|
||||||
-DNANO_WARN_TO_ERR=ON \
|
-DNANO_WARN_TO_ERR=ON \
|
||||||
-DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Debug} \
|
-DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Debug} \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||||
-DBOOST_ROOT=${BOOST_ROOT:-/tmp/boost/} \
|
|
||||||
-DNANO_SHARED_BOOST=ON \
|
|
||||||
-DQt5_DIR=${qt_dir} \
|
-DQt5_DIR=${qt_dir} \
|
||||||
-DCI_TEST="1" \
|
-DCI_TEST="1" \
|
||||||
${BACKTRACE:-} \
|
${BACKTRACE:-} \
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,6 @@ cmake \
|
||||||
-DPORTABLE=1 \
|
-DPORTABLE=1 \
|
||||||
-DCMAKE_BUILD_TYPE=${CONFIGURATION} \
|
-DCMAKE_BUILD_TYPE=${CONFIGURATION} \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||||
-DBOOST_ROOT=/tmp/boost/ \
|
|
||||||
-DNANO_SHARED_BOOST=ON \
|
|
||||||
-DQt5_DIR=${qt_dir} \
|
-DQt5_DIR=${qt_dir} \
|
||||||
-DCI_BUILD=true \
|
-DCI_BUILD=true \
|
||||||
-DCI_VERSION_PRE_RELEASE="${ci_version_pre_release}" \
|
-DCI_VERSION_PRE_RELEASE="${ci_version_pre_release}" \
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ g++ \
|
||||||
wget \
|
wget \
|
||||||
python \
|
python \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
cmake
|
cmake \
|
||||||
|
git
|
||||||
|
|
||||||
RUN apt-get update -qq && apt-get install -yqq \
|
RUN apt-get update -qq && apt-get install -yqq \
|
||||||
qt5-default \
|
qt5-default \
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,7 @@ FROM ${ENV_REPOSITORY}:base
|
||||||
|
|
||||||
RUN apt-get update -qq && apt-get install -yqq \
|
RUN apt-get update -qq && apt-get install -yqq \
|
||||||
clang \
|
clang \
|
||||||
lldb \
|
lldb
|
||||||
git \
|
|
||||||
libboost-all-dev
|
|
||||||
|
|
||||||
ENV CXX=/usr/bin/clang++
|
ENV CXX=/usr/bin/clang++
|
||||||
ENV CC=/usr/bin/clang
|
ENV CC=/usr/bin/clang
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@ ARG ENV_REPOSITORY=nanocurrency/nano-env
|
||||||
FROM ${ENV_REPOSITORY}:base
|
FROM ${ENV_REPOSITORY}:base
|
||||||
|
|
||||||
RUN apt-get update -qq && apt-get install -yqq \
|
RUN apt-get update -qq && apt-get install -yqq \
|
||||||
git \
|
..
|
||||||
libboost-all-dev
|
|
||||||
|
|
||||||
ARG REPOSITORY=nanocurrency/nano-node
|
ARG REPOSITORY=nanocurrency/nano-node
|
||||||
LABEL org.opencontainers.image.source https://github.com/$REPOSITORY
|
LABEL org.opencontainers.image.source https://github.com/$REPOSITORY
|
||||||
|
|
|
||||||
|
|
@ -1,150 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
bootstrapArgs=()
|
|
||||||
buildArgs=()
|
|
||||||
useClang='false'
|
|
||||||
useLibCXX='false'
|
|
||||||
keepArchive='false'
|
|
||||||
LINK_TYPE=('link=static')
|
|
||||||
debugLevel=0
|
|
||||||
buildThreads=1
|
|
||||||
buildCArgs=()
|
|
||||||
buildCXXArgs=()
|
|
||||||
buildLDArgs=()
|
|
||||||
boostVersion='1.70'
|
|
||||||
while getopts 'hmscCkpvB:j:' OPT; do
|
|
||||||
case "${OPT}" in
|
|
||||||
h)
|
|
||||||
echo "Usage: bootstrap_boost.sh [-hmcCkpv] [-B <boostVersion>]"
|
|
||||||
echo " -h This help"
|
|
||||||
echo " -s Build Shared and static libs, default is static only"
|
|
||||||
echo " -m Build a minimal set of libraries needed for Nano"
|
|
||||||
echo " -j <threads> Number of threads to build with"
|
|
||||||
echo " -c Use Clang"
|
|
||||||
echo " -C Use libc++ when using Clang"
|
|
||||||
echo " -k Keep the downloaded archive file"
|
|
||||||
echo " -p Build a PIC version of the objects"
|
|
||||||
echo " -v Increase debug level, may be repeated to increase it"
|
|
||||||
echo " further"
|
|
||||||
echo " -B <boostVersion> Specify version of Boost to build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
s)
|
|
||||||
LINK_TYPE+=('link=shared')
|
|
||||||
;;
|
|
||||||
m)
|
|
||||||
bootstrapArgs+=('--with-libraries=system,thread,log,filesystem,program_options,coroutine,context')
|
|
||||||
;;
|
|
||||||
j)
|
|
||||||
buildThreads=${OPTARG}
|
|
||||||
;;
|
|
||||||
c)
|
|
||||||
useClang='true'
|
|
||||||
;;
|
|
||||||
C)
|
|
||||||
useLibCXX='true'
|
|
||||||
;;
|
|
||||||
k)
|
|
||||||
keepArchive='true'
|
|
||||||
;;
|
|
||||||
p)
|
|
||||||
buildCXXArgs+=(-fPIC)
|
|
||||||
buildCArgs+=(-fPIC)
|
|
||||||
;;
|
|
||||||
v)
|
|
||||||
debugLevel=$(($debugLevel + 1))
|
|
||||||
;;
|
|
||||||
B)
|
|
||||||
boostVersion="${OPTARG}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o xtrace
|
|
||||||
|
|
||||||
if ! c++ --version >/dev/null 2>/dev/null; then
|
|
||||||
useClang='true'
|
|
||||||
|
|
||||||
if ! clang++ --version >/dev/null 2>/dev/null; then
|
|
||||||
echo "Unable to find a usable toolset" >&2
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${useClang}" = 'true' ]; then
|
|
||||||
bootstrapArgs+=(--with-toolset=clang)
|
|
||||||
buildArgs+=(toolset=clang)
|
|
||||||
if [ "${useLibCXX}" = 'true' ]; then
|
|
||||||
buildCXXArgs+=(-stdlib=libc++)
|
|
||||||
buildLDArgs+=(-stdlib=libc++)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "${boostVersion}" in
|
|
||||||
1.70)
|
|
||||||
BOOST_BASENAME=boost_1_70_0
|
|
||||||
BOOST_URL=https://sourceforge.net/projects/boost/files/boost/1.70.0/${BOOST_BASENAME}.tar.bz2/download
|
|
||||||
BOOST_ARCHIVE_SHA256='430ae8354789de4fd19ee52f3b1f739e1fba576f0aded0897c3c2bc00fb38778'
|
|
||||||
;;
|
|
||||||
1.72)
|
|
||||||
BOOST_BASENAME=boost_1_72_0
|
|
||||||
BOOST_URL=https://sourceforge.net/projects/boost/files/boost/1.72.0/${BOOST_BASENAME}.tar.bz2/download
|
|
||||||
BOOST_ARCHIVE_SHA256='59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722'
|
|
||||||
;;
|
|
||||||
1.73)
|
|
||||||
BOOST_BASENAME=boost_1_73_0
|
|
||||||
BOOST_URL=https://sourceforge.net/projects/boost/files/boost/1.73.0/${BOOST_BASENAME}.tar.bz2/download
|
|
||||||
BOOST_ARCHIVE_SHA256='4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402'
|
|
||||||
;;
|
|
||||||
1.75)
|
|
||||||
BOOST_BASENAME=boost_1_75_0
|
|
||||||
BOOST_URL=https://sourceforge.net/projects/boost/files/boost/1.75.0/${BOOST_BASENAME}.tar.bz2/download
|
|
||||||
BOOST_ARCHIVE_SHA256='953db31e016db7bb207f11432bef7df100516eeb746843fa0486a222e3fd49cb'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Unsupported Boost version: ${boostVersion}" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
BOOST_ARCHIVE="${BOOST_BASENAME}.tar.bz2"
|
|
||||||
BOOST_ROOT=${BOOST_ROOT-/usr/local/boost}
|
|
||||||
|
|
||||||
if [ ! -f "${BOOST_ARCHIVE}" ]; then
|
|
||||||
wget --quiet -O "${BOOST_ARCHIVE}.new" "${BOOST_URL}"
|
|
||||||
checkHash="$(openssl dgst -sha256 "${BOOST_ARCHIVE}.new" | sed 's@^.*= *@@')"
|
|
||||||
if [ "${checkHash}" != "${BOOST_ARCHIVE_SHA256}" ]; then
|
|
||||||
echo "Checksum mismatch. Expected ${BOOST_ARCHIVE_SHA256}, got ${checkHash}" >&2
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mv "${BOOST_ARCHIVE}.new" "${BOOST_ARCHIVE}" || exit 1
|
|
||||||
else
|
|
||||||
keepArchive='true'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${buildCArgs[*]}" ]; then
|
|
||||||
buildArgs+=(cflags="${buildCArgs[*]}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${buildCXXArgs[*]}" ]; then
|
|
||||||
buildArgs+=(cxxflags="${buildCXXArgs[*]}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${buildLDArgs[*]}" ]; then
|
|
||||||
buildArgs+=(linkflags="${buildLDArgs[*]}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf "${BOOST_BASENAME}"
|
|
||||||
tar xf "${BOOST_ARCHIVE}"
|
|
||||||
|
|
||||||
pushd "${BOOST_BASENAME}"
|
|
||||||
./bootstrap.sh "${bootstrapArgs[@]}"
|
|
||||||
./b2 -d${debugLevel} -j${buildThreads} hardcode-dll-paths=true dll-path="'\$ORIGIN/../lib'" --prefix="${BOOST_ROOT}" ${LINK_TYPE[@]} "${buildArgs[@]}" install
|
|
||||||
popd
|
|
||||||
|
|
||||||
rm -rf "${BOOST_BASENAME}"
|
|
||||||
if [ "${keepArchive}" != 'true' ]; then
|
|
||||||
rm -f "${BOOST_ARCHIVE}"
|
|
||||||
fi
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
OS=$(uname)
|
|
||||||
|
|
||||||
COMPILER="${COMPILER:-clang}"
|
|
||||||
|
|
||||||
pushd /tmp
|
|
||||||
if [[ "$OS" == 'Linux' ]]; then
|
|
||||||
wget -O boost-$OS-$COMPILER.tgz https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/boost-$OS-$COMPILER-1.70-18.tgz
|
|
||||||
else
|
|
||||||
wget -O boost-$OS-$COMPILER.tgz https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/boost-$OS-$COMPILER-1.70-full.tgz
|
|
||||||
fi
|
|
||||||
tar -zxf boost-$OS-$COMPILER.tgz
|
|
||||||
mv tmp/* .
|
|
||||||
rm -fr tmp
|
|
||||||
popd
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue