This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8645 from EOSIO/merge-release-2.0.3-to-master
Merge release 2.0.3 to master
- Loading branch information
Showing
41 changed files
with
596 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,11 @@ | |
set -eo pipefail | ||
. ./.cicd/helpers/general.sh | ||
mkdir -p $BUILD_DIR | ||
CMAKE_EXTRAS="-DCMAKE_BUILD_TYPE='Release' -DENABLE_MULTIVERSION_PROTOCOL_TEST=true" | ||
CMAKE_EXTRAS="-DCMAKE_BUILD_TYPE='Release' -DENABLE_MULTIVERSION_PROTOCOL_TEST=true -DBUILD_MONGO_DB_PLUGIN=true" | ||
if [[ "$(uname)" == 'Darwin' ]]; then | ||
# You can't use chained commands in execute | ||
if [[ "$TRAVIS" == 'true' ]]; then | ||
if [[ "$GITHUB_ACTIONS" == 'true' ]]; then | ||
export PINNED=false | ||
brew reinstall [email protected] # Fixes issue where builds in Travis cannot find libcrypto. | ||
ccache -s | ||
CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" | ||
else | ||
CMAKE_EXTRAS="$CMAKE_EXTRAS -DBUILD_MONGO_DB_PLUGIN=true" | ||
fi | ||
[[ ! "$PINNED" == 'false' ]] && CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_TOOLCHAIN_FILE=$HELPERS_DIR/clang.make" | ||
cd $BUILD_DIR | ||
|
@@ -20,28 +15,17 @@ if [[ "$(uname)" == 'Darwin' ]]; then | |
echo "make -j$JOBS" | ||
make -j$JOBS | ||
else # Linux | ||
CMAKE_EXTRAS="$CMAKE_EXTRAS -DBUILD_MONGO_DB_PLUGIN=true" | ||
ARGS=${ARGS:-"--rm --init -v $(pwd):$MOUNTED_DIR"} | ||
PRE_COMMANDS="cd $MOUNTED_DIR/build" | ||
# PRE_COMMANDS: Executed pre-cmake | ||
# CMAKE_EXTRAS: Executed within and right before the cmake path (cmake CMAKE_EXTRAS ..) | ||
[[ ! "$IMAGE_TAG" =~ 'unpinned' ]] && CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_TOOLCHAIN_FILE=$MOUNTED_DIR/.cicd/helpers/clang.make -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" | ||
if [[ "$IMAGE_TAG" == 'amazon_linux-2-pinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib64/ccache:\\\$PATH" | ||
elif [[ "$IMAGE_TAG" == 'centos-7.7-pinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib64/ccache:\\\$PATH" | ||
elif [[ "$IMAGE_TAG" == 'ubuntu-16.04-pinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib/ccache:\\\$PATH" | ||
elif [[ "$IMAGE_TAG" == 'ubuntu-18.04-pinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib/ccache:\\\$PATH" | ||
elif [[ "$IMAGE_TAG" == 'amazon_linux-2-unpinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib64/ccache:\\\$PATH" | ||
[[ ! "$IMAGE_TAG" =~ 'unpinned' ]] && CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_TOOLCHAIN_FILE=$MOUNTED_DIR/.cicd/helpers/clang.make" | ||
if [[ "$IMAGE_TAG" == 'amazon_linux-2-unpinned' ]]; then | ||
CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_CXX_COMPILER='clang++' -DCMAKE_C_COMPILER='clang'" | ||
elif [[ "$IMAGE_TAG" == 'centos-7.7-unpinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && source /opt/rh/devtoolset-8/enable && source /opt/rh/rh-python36/enable && export PATH=/usr/lib64/ccache:\\\$PATH" | ||
PRE_COMMANDS="$PRE_COMMANDS && source /opt/rh/devtoolset-8/enable && source /opt/rh/rh-python36/enable" | ||
CMAKE_EXTRAS="$CMAKE_EXTRAS -DLLVM_DIR='/opt/rh/llvm-toolset-7.0/root/usr/lib64/cmake/llvm'" | ||
elif [[ "$IMAGE_TAG" == 'ubuntu-18.04-unpinned' ]]; then | ||
PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib/ccache:\\\$PATH" | ||
CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_CXX_COMPILER='clang++-7' -DCMAKE_C_COMPILER='clang-7' -DLLVM_DIR='/usr/lib/llvm-7/lib/cmake/llvm'" | ||
fi | ||
BUILD_COMMANDS="cmake $CMAKE_EXTRAS .. && make -j$JOBS" | ||
|
@@ -52,9 +36,9 @@ else # Linux | |
[[ "$ENABLE_INSTALL" == 'true' ]] && COMMANDS="cp -r $MOUNTED_DIR /root/eosio && cd /root/eosio/build &&" | ||
COMMANDS="$COMMANDS $BUILD_COMMANDS" | ||
[[ "$ENABLE_INSTALL" == 'true' ]] && COMMANDS="$COMMANDS && make install" | ||
elif [[ "$TRAVIS" == 'true' ]]; then | ||
ARGS="$ARGS -v /usr/lib/ccache -v $HOME/.ccache:/opt/.ccache -e JOBS -e TRAVIS -e CCACHE_DIR=/opt/.ccache" | ||
COMMANDS="ccache -s && $BUILD_COMMANDS" | ||
elif [[ "$GITHUB_ACTIONS" == 'true' ]]; then | ||
ARGS="$ARGS -e JOBS" | ||
COMMANDS="$BUILD_COMMANDS" | ||
fi | ||
. $HELPERS_DIR/file-hash.sh $CICD_DIR/platforms/$PLATFORM_TYPE/$IMAGE_TAG.dockerfile | ||
COMMANDS="$PRE_COMMANDS && $COMMANDS" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
set -eo pipefail | ||
VERSION=1 | ||
brew update | ||
brew install git cmake python@2 python libtool libusb graphviz automake wget gmp llvm@7 pkgconfig doxygen [email protected] jq || : | ||
brew install git cmake python libtool libusb graphviz automake wget gmp llvm@7 pkgconfig doxygen [email protected] jq || : | ||
# install clang from source | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/llvm.git clang8 | ||
cd clang8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
set -eo pipefail | ||
VERSION=1 | ||
brew update | ||
brew install git cmake python@2 python libtool libusb graphviz automake wget gmp llvm@7 pkgconfig doxygen [email protected] jq boost || : | ||
brew install git cmake python libtool libusb graphviz automake wget gmp llvm@7 pkgconfig doxygen [email protected] jq boost || : | ||
# install mongoDB | ||
cd ~ | ||
curl -OL https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.3.tgz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.