mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
TON binaries for Ubuntu with aarch64-arm64 CPU architecture (#493)
* add: TON Overflow * macOS compile with docker * QEMU does not run on macOS itself * QEMU does not run on macOS itself * QEMU does not run on macOS itself * QEMU does not run on macOS itself * QEMU does not run on macOS itself * QEMU does not run on macOS itself * QEMU does not run on macOS itself * ubuntu multi-platform compile * ubuntu multi-platform compile * ubuntu multi-platform compile * ubuntu multi-platform compile test matrix * ubuntu multi-platform compile test matrix * ubuntu multi-platform compile test matrix * copy from container and publish * copy from container and publish * copy from container and publish * copy from container and publish * copy from container and publish * copy from container and publish * copy from container and publish * copy from container and publish * multi platform with upload * bug fix * bug fix * bug fix * bug fix * bug fix * bug fix * bug fix without exec * bug fix without filename * bug fix without filename * Update docker-compile-ubuntu.yml * Update docker-compile-ubuntu.yml * Update docker-compile-ubuntu.yml * Update docker-compile-ubuntu.yml * Update docker-compile-ubuntu.yml * Update docker-compile-ubuntu.yml * fix tzdata Co-authored-by: Doge <awesomedogewow@gmail.com> Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
This commit is contained in:
parent
e03abf221b
commit
6e8df7bcb2
7 changed files with 149 additions and 0 deletions
17
.github/script/amd64-18.04.Dockerfile
vendored
Normal file
17
.github/script/amd64-18.04.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM ubuntu:18.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 /
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git
|
||||
|
||||
WORKDIR /ton
|
||||
RUN mkdir /ton/build
|
||||
WORKDIR /ton/build
|
||||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
|
17
.github/script/amd64-20.04.Dockerfile
vendored
Normal file
17
.github/script/amd64-20.04.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
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 /
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git
|
||||
|
||||
WORKDIR /ton
|
||||
RUN mkdir /ton/build
|
||||
WORKDIR /ton/build
|
||||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
|
17
.github/script/amd64-22.04.Dockerfile
vendored
Normal file
17
.github/script/amd64-22.04.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM ubuntu:22.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 /
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git
|
||||
|
||||
WORKDIR /ton
|
||||
RUN mkdir /ton/build
|
||||
WORKDIR /ton/build
|
||||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
|
17
.github/script/arm64-18.04.Dockerfile
vendored
Normal file
17
.github/script/arm64-18.04.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM ubuntu:18.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 /
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git
|
||||
|
||||
WORKDIR /ton
|
||||
RUN mkdir /ton/build
|
||||
WORKDIR /ton/build
|
||||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
|
||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
|
17
.github/script/arm64-20.04.Dockerfile
vendored
Normal file
17
.github/script/arm64-20.04.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
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 /
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git
|
||||
|
||||
WORKDIR /ton
|
||||
RUN mkdir /ton/build
|
||||
WORKDIR /ton/build
|
||||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
|
||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
|
17
.github/script/arm64-22.04.Dockerfile
vendored
Normal file
17
.github/script/arm64-22.04.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM ubuntu:22.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 /
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/ton-blockchain/ton.git
|
||||
|
||||
WORKDIR /ton
|
||||
RUN mkdir /ton/build
|
||||
WORKDIR /ton/build
|
||||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
|
||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
|
47
.github/workflows/docker-compile-ubuntu.yml
vendored
Normal file
47
.github/workflows/docker-compile-ubuntu.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
name: Docker Compile Ubuntu x86-64 & arm64
|
||||
|
||||
on: [push,workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
ver: [18.04, 20.04, 22.04]
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build with docker buildx
|
||||
run: |
|
||||
mkdir build-${{matrix.ver}}-${{matrix.arch}}
|
||||
docker buildx build --platform=linux/${{matrix.arch}} --progress=plain --load . -t build-${{matrix.ver}}-${{matrix.arch}} -f .github/script/${{matrix.arch}}-${{matrix.ver}}.Dockerfile
|
||||
container_id=$(docker create --platform=linux/${{matrix.arch}} build-${{matrix.ver}}-${{matrix.arch}})
|
||||
docker cp $container_id:/ton/build/dht-server/dht-server build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/validator-engine/validator-engine build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/validator-engine-console/validator-engine-console build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/crypto/fift build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/crypto/func build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/crypto/create-state build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/create-hardfork/create-hardfork build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/blockchain-explorer/blockchain-explorer build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/lite-client/lite-client build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/utils/generate-random-id build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/build/tonlib/libtonlibjson.so.0.5 build-${{matrix.ver}}-${{matrix.arch}}/tonlibjson.so
|
||||
docker cp -a $container_id:/ton/crypto/smartcont build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
docker cp -a $container_id:/ton/crypto/fift/lib build-${{matrix.ver}}-${{matrix.arch}}/
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ton-ubuntu-${{matrix.ver}}-${{matrix.arch}}
|
||||
path: build-${{matrix.ver}}-${{matrix.arch}}
|
Loading…
Reference in a new issue