Skip to content

Commit

Permalink
update clang/clang-6 docker images to use cached boost artifacts
Browse files Browse the repository at this point in the history
macOS updated to used cached boost artifacts
Rename variable
  • Loading branch information
Russel Waters committed May 19, 2020
1 parent 66dde97 commit 152f2cd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ci/actions/osx/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ if [[ ${TEST-0} -eq 1 ]]; then
else
util/build_prep/fetch_rocksdb.sh
fi
util/build_prep/bootstrap_boost.sh -m -c -B 1.70 && \
util/build_prep/fetch_boost.sh && \
util/build_prep/macosx/build_qt.sh
4 changes: 2 additions & 2 deletions docker/ci/Dockerfile-clang
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
ENV BOOST_ROOT=/tmp/boost

ADD util/build_prep/bootstrap_boost.sh bootstrap_boost.sh
RUN ./bootstrap_boost.sh -m -c -B 1.70
ADD util/build_prep/fetch_boost.sh fetch_boost.sh
RUN ./fetch_boost.sh

# workaround to get a path that can be easily passed into cmake for
# BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE
Expand Down
4 changes: 2 additions & 2 deletions docker/ci/Dockerfile-clang-6
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
ENV BOOST_ROOT=/tmp/boost

ADD util/build_prep/bootstrap_boost.sh bootstrap_boost.sh
ADD util/build_prep/fetch_boost.sh fetch_boost.sh

RUN ./bootstrap_boost.sh -m -c -B 1.70
RUN COMPILER=clang-6 ./fetch_boost.sh
2 changes: 1 addition & 1 deletion docker/ci/Dockerfile-gcc
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ENV BOOST_ROOT=/tmp/boost

ADD util/build_prep/fetch_boost.sh fetch_boost.sh

RUN TRAVIS_COMPILER=gcc ./fetch_boost.sh
RUN COMPILER=gcc ./fetch_boost.sh
6 changes: 3 additions & 3 deletions util/build_prep/fetch_boost.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
OS=`uname`

TRAVIS_COMPILER="${TRAVIS_COMPILER:-clang}"
COMPILER="${COMPILER:-clang}"

pushd /tmp
wget -O boost-$OS-$TRAVIS_COMPILER-1.70.tgz https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/boost-$OS-$TRAVIS_COMPILER-1.70.tgz
tar -zxf boost-$OS-$TRAVIS_COMPILER-1.70.tgz
wget -O boost-$OS-$COMPILER-1.70.tgz https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/boost-$OS-$COMPILER-1.70.tgz
tar -zxf boost-$OS-$COMPILER-1.70.tgz
mv tmp/* .
rm -fr tmp
popd

0 comments on commit 152f2cd

Please sign in to comment.