diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index dbcae6ab4..000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/.github/script/amd64-20.04.Dockerfile b/.github/script/amd64-20.04.Dockerfile deleted file mode 100644 index 40d980e5e..000000000 --- a/.github/script/amd64-20.04.Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -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 libsecp256k1-dev libsodium-dev pkg-config - -WORKDIR / - -ARG BRANCH -ARG REPO -RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update - -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 \ No newline at end of file diff --git a/.github/script/amd64-22.04.Dockerfile b/.github/script/amd64-22.04.Dockerfile deleted file mode 100644 index 44c9c40b7..000000000 --- a/.github/script/amd64-22.04.Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -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 libsecp256k1-dev libsodium-dev pkg-config - -WORKDIR / - -ARG BRANCH -ARG REPO -RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update - -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 \ No newline at end of file diff --git a/.github/script/arm64-20.04.Dockerfile b/.github/script/arm64-20.04.Dockerfile deleted file mode 100644 index 1f57dc401..000000000 --- a/.github/script/arm64-20.04.Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -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 libsecp256k1-dev libsodium-dev pkg-config - -WORKDIR / - -ARG BRANCH -ARG REPO -RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update - -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 \ No newline at end of file diff --git a/.github/script/arm64-22.04.Dockerfile b/.github/script/arm64-22.04.Dockerfile deleted file mode 100644 index 2b595839f..000000000 --- a/.github/script/arm64-22.04.Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -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 libsecp256k1-dev libsodium-dev pkg-config - -WORKDIR / - -ARG BRANCH -ARG REPO -RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update - -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 \ No newline at end of file diff --git a/.github/workflows/build-ton-linux-android-tonlib.yml b/.github/workflows/build-ton-linux-android-tonlib.yml deleted file mode 100644 index a1a6bc99d..000000000 --- a/.github/workflows/build-ton-linux-android-tonlib.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Tonlib Android - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Install system libraries - run: | - sudo apt-get update - sudo apt-get install -y build-essential git cmake ninja-build automake libtool texinfo autoconf libgflags-dev \ - zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev \ - libtool autoconf libsodium-dev libsecp256k1-dev liblz4-dev - - - name: Build TON - run: | - cp assembly/android/build-android-tonlib.sh . - chmod +x build-android-tonlib.sh - ./build-android-tonlib.sh -a - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-android-tonlib - path: artifacts diff --git a/.github/workflows/build-ton-linux-x86-64-shared.yml b/.github/workflows/build-ton-linux-x86-64-shared.yml deleted file mode 100644 index e28ecc742..000000000 --- a/.github/workflows/build-ton-linux-x86-64-shared.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Ubuntu TON build (shared, x86-64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - strategy: - fail-fast: false - matrix: - os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] - runs-on: ${{ matrix.os }} - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Install system libraries - run: | - sudo apt-get update - sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev libjemalloc-dev - - - if: matrix.os == 'ubuntu-20.04' - run: | - sudo apt install -y manpages-dev software-properties-common - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt update && sudo apt install gcc-11 g++-11 - - - if: matrix.os != 'ubuntu-24.04' - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x llvm.sh - sudo ./llvm.sh 16 all - - - name: Build TON - run: | - cp assembly/native/build-ubuntu-shared.sh . - chmod +x build-ubuntu-shared.sh - ./build-ubuntu-shared.sh -t -a - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-binaries-${{ matrix.os }} - path: artifacts diff --git a/.github/workflows/build-ton-macos-15-arm64-shared.yml b/.github/workflows/build-ton-macos-15-arm64-shared.yml deleted file mode 100644 index 8379a0b04..000000000 --- a/.github/workflows/build-ton-macos-15-arm64-shared.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: MacOS-15 TON build (shared, arm64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: macos-15 - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Build TON - run: | - cp assembly/native/build-macos-shared.sh . - chmod +x build-macos-shared.sh - ./build-macos-shared.sh -t -a - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-binaries-macos-15 - path: artifacts diff --git a/.github/workflows/build-ton-macos-arm64-shared.yml b/.github/workflows/build-ton-macos-arm64-shared.yml deleted file mode 100644 index aadd23dd0..000000000 --- a/.github/workflows/build-ton-macos-arm64-shared.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: MacOS-14 TON build (shared, arm64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: macos-14 - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Build TON - run: | - cp assembly/native/build-macos-shared.sh . - chmod +x build-macos-shared.sh - ./build-macos-shared.sh -t -a - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-binaries-macos-14 - path: artifacts diff --git a/.github/workflows/build-ton-macos-x86-64-shared.yml b/.github/workflows/build-ton-macos-x86-64-shared.yml deleted file mode 100644 index c9331e3be..000000000 --- a/.github/workflows/build-ton-macos-x86-64-shared.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: MacOS TON build (shared, x86-64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: macos-12 - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Build TON - run: | - cp assembly/native/build-macos-shared.sh . - chmod +x build-macos-shared.sh - ./build-macos-shared.sh -t -a - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-binaries-macos-12 - path: artifacts diff --git a/.github/workflows/build-ton-wasm-emscripten.yml b/.github/workflows/build-ton-wasm-emscripten.yml deleted file mode 100644 index 534d312fd..000000000 --- a/.github/workflows/build-ton-wasm-emscripten.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Emscripten TON build (wasm) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Install system libraries - run: | - sudo apt-get update - sudo apt-get install -y build-essential git openssl cmake ninja-build zlib1g-dev libssl-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev - - - name: Build TON WASM artifacts - run: | - cp assembly/wasm/fift-func-wasm-build-ubuntu.sh . - chmod +x fift-func-wasm-build-ubuntu.sh - ./fift-func-wasm-build-ubuntu.sh -a - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-wasm-binaries - path: artifacts diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index 263bd9a43..000000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,519 +0,0 @@ -name: Create release - -on: [workflow_dispatch] - -permissions: write-all - -jobs: - create-release: - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v3 - - - name: Download Linux x86-64 artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-x86-64-linux.yml - path: artifacts - workflow_conclusion: success - skip_unpack: true - - - name: Download and unzip Linux x86-64 artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-x86-64-linux.yml - path: artifacts - workflow_conclusion: success - skip_unpack: false - - - name: Download Mac x86-64 artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-x86-64-macos.yml - path: artifacts - workflow_conclusion: success - skip_unpack: true - - - name: Download Mac arm64 artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-arm64-macos.yml - path: artifacts - workflow_conclusion: success - skip_unpack: true - - - name: Download and unzip Mac x86-64 artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-x86-64-macos.yml - path: artifacts - workflow_conclusion: success - skip_unpack: false - - - name: Download and unzip arm64 artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-arm64-macos.yml - path: artifacts - workflow_conclusion: success - skip_unpack: false - - - name: Download Windows artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-x86-64-windows.yml - path: artifacts - workflow_conclusion: success - skip_unpack: true - - - name: Download and unzip Windows artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ton-x86-64-windows.yml - path: artifacts - workflow_conclusion: success - skip_unpack: false - - - name: Download WASM artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: build-ton-wasm-emscripten.yml - path: artifacts - workflow_conclusion: success - skip_unpack: true - - - name: Download Android Tonlib artifacts - uses: dawidd6/action-download-artifact@v2 - with: - workflow: build-ton-linux-android-tonlib.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 recent_changelog.md) - r="${r//'%'/'%25'}" - r="${r//$'\n'/'%0A'}" - r="${r//$'\r'/'%0D'}" - echo "::set-output name=CHANGELOG_BODY::$r" - - - name: Get next tag - id: tag - run: | - git fetch --all --tags - git tag -l - NEW_TAG=v$(date +'%Y.%m') - FOUND=$(git tag -l | grep $NEW_TAG | wc -l) - if [ $FOUND -eq 0 ]; then - echo "TAG=$NEW_TAG" >> $GITHUB_OUTPUT - else - echo "TAG=$NEW_TAG-$FOUND" >> $GITHUB_OUTPUT - fi - - - 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/ton-blockchain/ton/actions/runners/registration-token - - - name: Create release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.tag.outputs.TAG }} - release_name: TON ${{ steps.tag.outputs.TAG }} - body: | - ${{ steps.read_release.outputs.CHANGELOG_BODY }} - draft: false - prerelease: false - - # upload - - # win - - - 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-win-x86-64.zip - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - fift - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/fift.exe - asset_name: fift.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - func - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/func.exe - asset_name: func.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - lite-client - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/lite-client.exe - asset_name: lite-client.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - rldp-http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/rldp-http-proxy.exe - asset_name: rldp-http-proxy.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/http-proxy.exe - asset_name: http-proxy.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - storage-daemon-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/storage-daemon-cli.exe - asset_name: storage-daemon-cli.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - storage-daemon - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/storage-daemon.exe - asset_name: storage-daemon.exe - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - tonlibjson - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/tonlibjson.dll - asset_name: tonlibjson.dll - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - libemulator - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/emulator.dll - asset_name: libemulator.dll - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Windows 2019 single artifact - tonlib-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-win-binaries/tonlib-cli.exe - asset_name: tonlib-cli.exe - tag: ${{ steps.tag.outputs.TAG }} - - # mac x86-64 - - - name: Upload Mac x86-64 artifacts - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries.zip - asset_name: ton-mac-x86-64.zip - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - fift - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/fift - asset_name: fift-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - func - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/func - asset_name: func-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - lite-client - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/lite-client - asset_name: lite-client-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - rldp-http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/rldp-http-proxy - asset_name: rldp-http-proxy-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/http-proxy - asset_name: http-proxy-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - storage-daemon-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/storage-daemon-cli - asset_name: storage-daemon-cli-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - storage-daemon - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/storage-daemon - asset_name: storage-daemon-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - tonlibjson - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/libtonlibjson.dylib - asset_name: tonlibjson-mac-x86-64.dylib - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - libemulator - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/libemulator.dylib - asset_name: libemulator-mac-x86-64.dylib - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac x86-64 single artifact - tonlib-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-macos-binaries/tonlib-cli - asset_name: tonlib-cli-mac-x86-64 - tag: ${{ steps.tag.outputs.TAG }} - - - # mac arm64 - - - name: Upload Mac arm64 artifacts - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries.zip - asset_name: ton-mac-arm64.zip - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - fift - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/fift - asset_name: fift-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - func - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/func - asset_name: func-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - lite-client - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/lite-client - asset_name: lite-client-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - rldp-http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/rldp-http-proxy - asset_name: rldp-http-proxy-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/http-proxy - asset_name: http-proxy-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - storage-daemon-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/storage-daemon-cli - asset_name: storage-daemon-cli-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - storage-daemon - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/storage-daemon - asset_name: storage-daemon-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - tonlibjson - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/libtonlibjson.dylib - asset_name: tonlibjson-mac-arm64.dylib - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - libemulator - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/libemulator.dylib - asset_name: libemulator-mac-arm64.dylib - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Mac arm64 single artifact - tonlib-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-arm64-macos-binaries/tonlib-cli - asset_name: tonlib-cli-mac-arm64 - tag: ${{ steps.tag.outputs.TAG }} - - # linux x86-64 - - - name: Upload Linux x86-64 artifacts - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries.zip - asset_name: ton-linux-x86_64.zip - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - fift - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/fift - asset_name: fift-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - func - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/func - asset_name: func-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - lite-client - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/lite-client - asset_name: lite-client-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - rldp-http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/rldp-http-proxy - asset_name: rldp-http-proxy-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - http-proxy - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/http-proxy - asset_name: http-proxy-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - storage-daemon-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/storage-daemon-cli - asset_name: storage-daemon-cli-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - storage-daemon - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/storage-daemon - asset_name: storage-daemon-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - tonlibjson - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/libtonlibjson.so - asset_name: tonlibjson-linux-x86_64.so - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - libemulator - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/libemulator.so - asset_name: libemulator-linux-x86_64.so - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Linux x86-64 single artifact - tonlib-cli - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-x86_64-linux-binaries/tonlib-cli - asset_name: tonlib-cli-linux-x86_64 - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload WASM artifacts - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-wasm-binaries.zip - asset_name: ton-wasm-binaries.zip - tag: ${{ steps.tag.outputs.TAG }} - - - name: Upload Android Tonlib artifacts - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/ton-android-tonlib.zip - asset_name: ton-android-tonlib.zip - tag: ${{ steps.tag.outputs.TAG }} diff --git a/.github/workflows/docker-ubuntu-branch-image.yml b/.github/workflows/docker-ubuntu-branch-image.yml deleted file mode 100644 index d749afa2e..000000000 --- a/.github/workflows/docker-ubuntu-branch-image.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Docker Ubuntu 22.04 branch image - -on: - workflow_dispatch: - push: - branches-ignore: - - master - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - build-and-push: - runs-on: ubuntu-22.04 - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Get tag as branch name - id: tag - run: | - echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v6 - with: - platforms: linux/amd64 - push: true - context: ./ - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.TAG }} diff --git a/.github/workflows/docker-ubuntu-image.yml b/.github/workflows/docker-ubuntu-image.yml deleted file mode 100644 index 48c553efd..000000000 --- a/.github/workflows/docker-ubuntu-image.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Docker Ubuntu 22.04 image - -on: - workflow_dispatch: - push: - branches: - - 'master' - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - build-and-push: - runs-on: ubuntu-22.04 - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and export to Docker - uses: docker/build-push-action@v6 - with: - load: true - context: ./ - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test - - - name: Test - run: | - docker run --rm -e "TEST=1" ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test - - - name: Get next tag - id: tag - run: | - git fetch --all --tags - git tag -l - NEW_TAG=v$(date +'%Y.%m') - FOUND=$(git tag -l | grep $NEW_TAG | wc -l) - if [ $FOUND -eq 0 ]; then - echo "TAG=$NEW_TAG" >> $GITHUB_OUTPUT - else - echo "TAG=$NEW_TAG-$FOUND" >> $GITHUB_OUTPUT - fi - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v6 - with: - platforms: linux/amd64,linux/arm64 - push: true - context: ./ - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.TAG }} diff --git a/.github/workflows/ton-arm64-macos.yml b/.github/workflows/ton-arm64-macos.yml deleted file mode 100644 index 9e8302e80..000000000 --- a/.github/workflows/ton-arm64-macos.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: MacOS TON build (portable, arm64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: macos-14 - - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: cachix/install-nix-action@v23 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - - name: Build TON - run: | - cp assembly/nix/build-macos-nix.sh . - chmod +x build-macos-nix.sh - ./build-macos-nix.sh -t - - - name: Simple binaries test - run: | - sudo mv /nix/store /nix/store2 - artifacts/validator-engine -V - artifacts/lite-client -V - artifacts/fift -V - artifacts/func -V - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-arm64-macos-binaries - path: artifacts diff --git a/.github/workflows/ton-ccpcheck.yml b/.github/workflows/ton-ccpcheck.yml deleted file mode 100644 index 95bef5f3d..000000000 --- a/.github/workflows/ton-ccpcheck.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: TON Static Code Analysis - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - name: Check out repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Run Cppcheck - uses: Bedzior/run-cppcheck@master - with: - enabled checks: all - enable inconclusive: true - generate report: true - - - name: Upload report - uses: actions/upload-artifact@master - with: - name: ton-ccpcheck-report - path: output diff --git a/.github/workflows/ton-x86-64-linux.yml b/.github/workflows/ton-x86-64-linux.yml deleted file mode 100644 index abbe1cca4..000000000 --- a/.github/workflows/ton-x86-64-linux.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Ubuntu TON build (portable, x86-64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - run: | - sudo apt update - sudo apt install -y apt-utils - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: cachix/install-nix-action@v23 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - - name: Build TON - run: | - cp assembly/nix/build-linux-x86-64-nix.sh . - chmod +x build-linux-x86-64-nix.sh - ./build-linux-x86-64-nix.sh -t - - - name: Simple binaries test - run: | - sudo mv /nix/store /nix/store2 - artifacts/validator-engine -V - artifacts/lite-client -V - artifacts/fift -V - artifacts/func -V - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-x86_64-linux-binaries - path: artifacts diff --git a/.github/workflows/ton-x86-64-macos.yml b/.github/workflows/ton-x86-64-macos.yml deleted file mode 100644 index 8c71f34a1..000000000 --- a/.github/workflows/ton-x86-64-macos.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: MacOS TON build (portable, x86-64) - -on: [push,workflow_dispatch,workflow_call] - -jobs: - build: - runs-on: macos-12 - - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: cachix/install-nix-action@v23 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - - name: Build TON - run: | - cp assembly/nix/build-macos-nix.sh . - chmod +x build-macos-nix.sh - ./build-macos-nix.sh -t - - - name: Simple binaries test - run: | - sudo mv /nix/store /nix/store2 - artifacts/validator-engine -V - artifacts/lite-client -V - artifacts/fift -V - artifacts/func -V - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-x86_64-macos-binaries - path: artifacts diff --git a/.github/workflows/ton-x86-64-windows.yml b/.github/workflows/ton-x86-64-windows.yml deleted file mode 100644 index d5c9c243c..000000000 --- a/.github/workflows/ton-x86-64-windows.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Windows TON build (portable, x86-64) - -on: [push,workflow_dispatch,workflow_call] - -defaults: - run: - shell: cmd - -jobs: - build: - - runs-on: windows-2019 - - steps: - - name: Get Current OS version - run: | - systeminfo | findstr /B /C:"OS Name" /C:"OS Version" - - - name: Check out current repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Build TON - run: | - copy assembly\native\build-windows-github-2019.bat . - copy assembly\native\build-windows-2019.bat . - build-windows-github-2019.bat Enterprise - - - name: Upload artifacts - uses: actions/upload-artifact@master - with: - name: ton-win-binaries - path: artifacts