-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #584 from ton-blockchain/testnet
Merge 12.2022 updates
- Loading branch information
Showing
212 changed files
with
13,386 additions
and
2,634 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 / | ||
|
||
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 | ||
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 create-hardfork dht-server lite-client |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 | ||
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 create-hardfork dht-server lite-client |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 / | ||
|
||
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 | ||
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 create-hardfork dht-server lite-client |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 / | ||
|
||
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 | ||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= .. | ||
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 |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 | ||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= .. | ||
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 |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 / | ||
|
||
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 | ||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= .. | ||
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 |
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 |
---|---|---|
@@ -0,0 +1,167 @@ | ||
name: Create release | ||
|
||
on: [workflow_dispatch] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Show all artifacts | ||
run: | | ||
mkdir artifacts | ||
ls -lart artifacts | ||
- name: Download Ubuntu x86-64 artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ubuntu-compile.yml | ||
path: artifacts | ||
workflow_conclusion: success | ||
skip_unpack: true | ||
|
||
- name: Download Ubuntu arm64 artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: docker-compile-ubuntu.yml | ||
path: artifacts | ||
workflow_conclusion: success | ||
skip_unpack: true | ||
|
||
- name: Download MacOS 11.7 artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: macos-11.7-compile.yml | ||
path: artifacts | ||
workflow_conclusion: success | ||
skip_unpack: true | ||
|
||
- name: Download MacOS 12.6 artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: macos-12.6-compile.yml | ||
path: artifacts | ||
workflow_conclusion: success | ||
skip_unpack: true | ||
|
||
- name: Download Windows artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: win-2019-compile.yml | ||
path: artifacts | ||
workflow_conclusion: success | ||
skip_unpack: true | ||
|
||
- name: Show all artifacts | ||
run: | | ||
tree artifacts | ||
# create release | ||
|
||
- name: Read Changelog.md and use it as a body of new release | ||
id: read_release | ||
shell: bash | ||
run: | | ||
r=$(cat Changelog.md) | ||
r="${r//'%'/'%25'}" | ||
r="${r//$'\n'/'%0A'}" | ||
r="${r//$'\r'/'%0D'}" | ||
echo "::set-output name=CHANGELOG_BODY::$r" | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y.%m')" | ||
|
||
- name: Get registration token | ||
id: getRegToken | ||
run: | | ||
curl -X POST -H \"Accept: application/vnd.github+json\" -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/neodix42/HardTestDevelopment/actions/runners/registration-token | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.date.outputs.date }} | ||
release_name: v${{ steps.date.outputs.date }} | ||
body: | | ||
${{ steps.read_release.outputs.CHANGELOG_BODY }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Windows 2019 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-win-binaries.zip | ||
asset_name: ton-windows-2019-x86-64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload MacOS 11.7 x86-64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-macos-11.7.zip | ||
asset_name: ton-macos-11.7-x86-64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload MacOS 12.6 x86-64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-macos-12.6.zip | ||
asset_name: ton-macos-12.6-x86-64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload Ubuntu 18.04 x86-64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-binaries-ubuntu-18.04.zip | ||
asset_name: ton-ubuntu-18.04-x86-64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload Ubuntu 20.04 x86-64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-binaries-ubuntu-20.04.zip | ||
asset_name: ton-ubuntu-20.04-x86-64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload Ubuntu 22.04 x86-64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-binaries-ubuntu-22.04.zip | ||
asset_name: ton-ubuntu-22.04-x86-64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload Ubuntu 18.04 arm64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-ubuntu-18.04-arm64.zip | ||
asset_name: ton-ubuntu-18.04-arm64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload Ubuntu 20.04 arm64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-ubuntu-20.04-arm64.zip | ||
asset_name: ton-ubuntu-20.04-arm64.zip | ||
tag: v${{ steps.date.outputs.date }} | ||
|
||
- name: Upload Ubuntu 22.04 arm64 artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/ton-ubuntu-22.04-arm64.zip | ||
asset_name: ton-ubuntu-22.04-arm64.zip | ||
tag: v${{ steps.date.outputs.date }} |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Docker Ubuntu Compile arm64 | ||
|
||
on: [push,workflow_dispatch,workflow_call] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 3 | ||
matrix: | ||
arch: [arm64] | ||
ver: [22.04, 18.04, 20.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: Set output | ||
id: vars | ||
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} | ||
|
||
- name: Check output | ||
run: echo branch ${{ steps.vars.outputs.short_ref }} | ||
|
||
- name: Build with docker buildx | ||
run: | | ||
mkdir build-${{matrix.ver}}-${{matrix.arch}} | ||
docker buildx build --build-arg BRANCH=${{ steps.vars.outputs.short_ref }} --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/storage/storage-daemon/storage-daemon build-${{matrix.ver}}-${{matrix.arch}}/ | ||
docker cp -a $container_id:/ton/build/storage/storage-daemon/storage-daemon-cli 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/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}} |
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.