1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00
ton/.github/script/arm64-20.04.Dockerfile

19 lines
775 B
Text
Raw Normal View History

FROM ubuntu:20.04
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
RUN apt install -y build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git curl libreadline-dev ccache libmicrohttpd-dev ninja-build
WORKDIR /
ARG BRANCH
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git && cd ton && git checkout $BRANCH
WORKDIR /ton
RUN mkdir /ton/build
WORKDIR /ton/build
ENV CC clang
ENV CXX clang++
ENV CCACHE_DISABLE 1
Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability. (#580) * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * build storage-daemon and storage-daemon-cli binaries * force GSL 2.7.1 version * force GSL 2.7.1 version * handle missing BLAS library * handle missing BLAS library, force GSL 2.7.1 version, build storage-daemon and storage-daemon-cli binaries * Revert "handle missing BLAS library" This reverts commit 67ebd4abfaa667204c6c9717d9593c2274e38a99. * remove GSL * remove GSL only for 18.04 * remove GSL only for 18.04 * link blas library; leave gsl * merge upstream * make more portable binaries by excluding AVX512 CPU flag * make rocksdb to produce portable binaries * make rocksdb to produce portable binaries * make rocksdb to produce portable binaries * show OS CPU flags & force AVX2 * DPORTABLE=1 and -DTON_ARCH= * DPORTABLE=1 and -DTON_ARCH= and -DCMAKE_CXX_FLAGS="-mavx2" * DPORTABLE=1 and -DTON_ARCH= and -DCMAKE_CXX_FLAGS="-mavx2" * DPORTABLE=1 and -DCMAKE_CXX_FLAGS="-mavx2" only * Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries portability. * Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability. * minor fix
2022-12-30 17:13:10 +00:00
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id dht-server lite-client