Skip to content

Commit cee4c67

Browse files
authored
Merge pull request #1640 from ton-blockchain/testnet
Merge developing branch
2 parents ed46820 + 413b898 commit cee4c67

File tree

140 files changed

+7087
-2058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+7087
-2058
lines changed

.github/workflows/build-ton-linux-android-tonlib.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
sudo apt-get install -y build-essential git cmake ninja-build automake libtool texinfo autoconf libgflags-dev \
1919
zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev \
2020
libtool autoconf libsodium-dev libsecp256k1-dev liblz4-dev
21+
22+
23+
- name: Cache Android NDK
24+
id: cache-android-ndk
25+
uses: actions/cache@v4
26+
with:
27+
path: android-ndk-r25b
28+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-cache-android-ndk-${{ hashFiles('**/assembly/android/build-android-tonlib.sh') }}
2129

2230
- name: Build TON
2331
run: |

.github/workflows/build-ton-linux-arm64-appimage.yml

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,60 @@ jobs:
1212
with:
1313
submodules: 'recursive'
1414

15+
- name: Date Stamp
16+
shell: bash
17+
id: date-stamp
18+
run: |
19+
echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
20+
1521
- name: Install system libraries
1622
run: |
1723
sudo apt update
18-
sudo apt install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev
24+
sudo apt install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev ccache
1925
sudo apt remove libgsl-dev
26+
mkdir ~/.ccache 3pp
2027
2128
- name: Install clang-16
2229
run: |
2330
wget https://apt.llvm.org/llvm.sh
2431
chmod +x llvm.sh
25-
sudo ./llvm.sh 16 all
32+
sudo ./llvm.sh 16 clang
33+
34+
- name: Cache 3pp
35+
id: cache-3pp
36+
uses: actions/cache@v4
37+
with:
38+
path: 3pp
39+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-3pp-${{ hashFiles('**/assembly/native/build-ubuntu-appimages.sh') }}
40+
41+
- name: Cache OpenSSL
42+
id: cache-openssl
43+
uses: actions/cache@v4
44+
with:
45+
path: openssl_3
46+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-openssl_3-${{ hashFiles('**/assembly/native/build-ubuntu-appimages.sh') }}
47+
48+
- name: Restore cache TON
49+
uses: actions/cache/restore@v4
50+
with:
51+
path: ~/.ccache
52+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-portable-ccache-${{ steps.date-stamp.outputs.timestamp }}
53+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-portable-ccache
2654

2755
- name: Build TON
2856
run: |
2957
git submodule sync --recursive
3058
git submodule update
3159
cp assembly/native/build-ubuntu-appimages.sh .
3260
chmod +x build-ubuntu-appimages.sh
33-
./build-ubuntu-appimages.sh -a
61+
./build-ubuntu-appimages.sh -a -c
62+
ccache -sp
63+
64+
- name: Save cache TON
65+
uses: actions/cache/save@v4
66+
with:
67+
path: ~/.ccache
68+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-portable-ccache-${{ steps.date-stamp.outputs.timestamp }}
3469

3570
- name: Make AppImages
3671
run: |
@@ -41,12 +76,18 @@ jobs:
4176
./create-appimages.sh aarch64
4277
rm -rf artifacts
4378
79+
- name: Save/Restore cache TON libs
80+
uses: actions/cache@v4
81+
with:
82+
path: ~/.ccache
83+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-portable-libs-ccache-${{ steps.date-stamp.outputs.timestamp }}
84+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-arm-portable-libs-ccache
4485

4586
- name: Build TON libs
4687
run: |
4788
cp assembly/native/build-ubuntu-portable-libs.sh .
4889
chmod +x build-ubuntu-portable-libs.sh
49-
./build-ubuntu-portable-libs.sh -a
90+
./build-ubuntu-portable-libs.sh -a -c
5091
cp ./artifacts/libtonlibjson.so appimages/artifacts/
5192
cp ./artifacts/libemulator.so appimages/artifacts/
5293

.github/workflows/build-ton-linux-arm64-shared.yml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,50 @@ jobs:
1616
with:
1717
submodules: 'recursive'
1818

19+
- name: Date Stamp
20+
shell: bash
21+
id: date-stamp
22+
run: |
23+
echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
24+
1925
- name: Install system libraries
2026
run: |
2127
sudo apt-get update
22-
sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev libjemalloc-dev
28+
sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev libjemalloc-dev ccache
29+
mkdir ~/.ccache
2330
2431
- if: matrix.os != 'ubuntu-24.04-arm'
2532
name: Install llvm-16
2633
run: |
2734
wget https://apt.llvm.org/llvm.sh
2835
chmod +x llvm.sh
29-
sudo ./llvm.sh 16 all
36+
sudo ./llvm.sh 16 clang
37+
38+
- name: Cache OpenSSL
39+
id: cache-openssl
40+
uses: actions/cache@v4
41+
with:
42+
path: openssl_3
43+
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-openssl_3-${{ hashFiles('**/assembly/native/build-ubuntu-shared.sh') }}
44+
45+
- name: Cache TON test
46+
id: cache-ton
47+
uses: actions/cache@v4
48+
with:
49+
path: ~/.ccache
50+
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-shared-ccache-${{ steps.date-stamp.outputs.timestamp }}
51+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-shared-ccache
3052

3153
- name: Build TON
3254
run: |
3355
git submodule sync --recursive
3456
git submodule update
3557
cp assembly/native/build-ubuntu-shared.sh .
3658
chmod +x build-ubuntu-shared.sh
37-
./build-ubuntu-shared.sh -t -a
59+
./build-ubuntu-shared.sh -t -c
60+
ccache -sp
3861
39-
- name: Upload artifacts
40-
uses: actions/upload-artifact@master
41-
with:
42-
name: ton-binaries-${{ matrix.os }}
43-
path: artifacts
62+
- name: Run Tests
63+
run: |
64+
cd build
65+
ctest --output-on-failure --timeout 1800

.github/workflows/build-ton-linux-x86-64-appimage.yml

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,67 @@ on: [push,workflow_dispatch,workflow_call]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-22.04
88

99
steps:
1010
- name: Check out repository
1111
uses: actions/checkout@v3
1212
with:
1313
submodules: 'recursive'
1414

15+
- name: Date Stamp
16+
shell: bash
17+
id: date-stamp
18+
run: |
19+
echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
20+
1521
- name: Install system libraries
1622
run: |
1723
sudo apt update
18-
sudo apt install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev
24+
sudo apt install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev ccache
1925
sudo apt remove libgsl-dev
20-
21-
- name: Install gcc-11 g++-11
22-
run: |
23-
sudo apt install -y manpages-dev software-properties-common
24-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
25-
sudo apt update && sudo apt install gcc-11 g++-11
26+
mkdir ~/.ccache 3pp
2627
2728
- name: Install clang-16
2829
run: |
2930
wget https://apt.llvm.org/llvm.sh
3031
chmod +x llvm.sh
31-
sudo ./llvm.sh 16 all
32+
sudo ./llvm.sh 16 clang
33+
34+
- name: Cache 3pp
35+
id: cache-3pp
36+
uses: actions/cache@v4
37+
with:
38+
path: 3pp
39+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-3pp-${{ hashFiles('**/assembly/native/build-ubuntu-appimages.sh') }}
40+
41+
- name: Cache OpenSSL
42+
id: cache-openssl
43+
uses: actions/cache@v4
44+
with:
45+
path: openssl_3
46+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-openssl_3-${{ hashFiles('**/assembly/native/build-ubuntu-appimages.sh') }}
47+
48+
- name: Restore cache TON
49+
uses: actions/cache/restore@v4
50+
with:
51+
path: ~/.ccache
52+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-portable-ccache
3253

3354
- name: Build TON
3455
run: |
3556
git submodule sync --recursive
3657
git submodule update
3758
cp assembly/native/build-ubuntu-appimages.sh .
3859
chmod +x build-ubuntu-appimages.sh
39-
./build-ubuntu-appimages.sh -a
60+
./build-ubuntu-appimages.sh -a -c
61+
ccache -sp
62+
63+
- name: Save cache TON
64+
uses: actions/cache/save@v4
65+
with:
66+
path: ~/.ccache
67+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-portable-ccache-${{ steps.date-stamp.outputs.timestamp }}
4068

4169
- name: Make AppImages
4270
run: |
@@ -47,12 +75,18 @@ jobs:
4775
./create-appimages.sh x86_64
4876
rm -rf artifacts
4977
78+
- name: Save/Restore cache TON libs
79+
uses: actions/cache@v4
80+
with:
81+
path: ~/.ccache
82+
key: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-portable-libs-ccache-${{ steps.date-stamp.outputs.timestamp }}
83+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-ubuntu-22.04-portable-libs-ccache
5084

5185
- name: Build TON libs
5286
run: |
5387
cp assembly/native/build-ubuntu-portable-libs.sh .
5488
chmod +x build-ubuntu-portable-libs.sh
55-
./build-ubuntu-portable-libs.sh -a
89+
./build-ubuntu-portable-libs.sh -a -c
5690
cp ./artifacts/libtonlibjson.so appimages/artifacts/
5791
cp ./artifacts/libemulator.so appimages/artifacts/
5892

.github/workflows/build-ton-linux-x86-64-shared.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
10+
os: [ubuntu-22.04, ubuntu-24.04]
1111
runs-on: ${{ matrix.os }}
1212

1313
steps:
@@ -16,33 +16,48 @@ jobs:
1616
with:
1717
submodules: 'recursive'
1818

19-
- name: Install system libraries
19+
- name: Date Stamp
20+
shell: bash
21+
id: date-stamp
2022
run: |
21-
sudo apt-get update
22-
sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev libjemalloc-dev
23+
echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
2324
24-
- if: matrix.os == 'ubuntu-20.04'
25+
- name: Install system libraries
2526
run: |
26-
sudo apt install -y manpages-dev software-properties-common
27-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
28-
sudo apt update && sudo apt install gcc-11 g++-11
27+
sudo apt-get update
28+
sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev libjemalloc-dev ccache
29+
mkdir ~/.ccache
2930
3031
- if: matrix.os != 'ubuntu-24.04'
3132
run: |
3233
wget https://apt.llvm.org/llvm.sh
3334
chmod +x llvm.sh
34-
sudo ./llvm.sh 16 all
35+
sudo ./llvm.sh 16 clang
36+
37+
- name: Cache OpenSSL
38+
id: cache-openssl
39+
uses: actions/cache@v4
40+
with:
41+
path: openssl_3
42+
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-openssl_3-${{ hashFiles('**/assembly/native/build-ubuntu-shared.sh') }}
43+
44+
- name: Restore cache TON
45+
uses: actions/cache@v4
46+
with:
47+
path: ~/.ccache
48+
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-shared-ccache-${{ steps.date-stamp.outputs.timestamp }}
49+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-shared-ccache
3550

3651
- name: Build TON
3752
run: |
3853
git submodule sync --recursive
3954
git submodule update
4055
cp assembly/native/build-ubuntu-shared.sh .
4156
chmod +x build-ubuntu-shared.sh
42-
./build-ubuntu-shared.sh -t -a
57+
./build-ubuntu-shared.sh -t -c
58+
ccache -sp
4359
44-
- name: Upload artifacts
45-
uses: actions/upload-artifact@master
46-
with:
47-
name: ton-binaries-${{ matrix.os }}
48-
path: artifacts
60+
- name: Run Tests
61+
run: |
62+
cd build
63+
ctest --output-on-failure --timeout 1800

.github/workflows/build-ton-macos-13-x86-64-portable.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,45 @@ jobs:
1212
with:
1313
submodules: 'recursive'
1414

15+
- name: Date Stamp
16+
shell: bash
17+
id: date-stamp
18+
run: |
19+
echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
20+
21+
- name: Create directories
22+
run: |
23+
mkdir -p ~/.ccache
24+
mkdir -p 3pp
25+
26+
- name: Cache 3pp
27+
id: cache-3pp
28+
uses: actions/cache@v4
29+
with:
30+
path: 3pp
31+
key: ${{ runner.os }}-${{ runner.arch }}-13-3pp-${{ hashFiles('**/assembly/native/build-macos-portable.sh') }}
32+
33+
- name: Cache TON test
34+
id: cache-ton
35+
uses: actions/cache@v4
36+
with:
37+
path: ~/.ccache
38+
key: ${{ runner.os }}-${{ runner.arch }}-13-portable-ccache-${{ steps.date-stamp.outputs.timestamp }}
39+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-13-portable-ccache
40+
1541
- name: Build TON
1642
run: |
1743
git submodule sync --recursive
1844
git submodule update
1945
cp assembly/native/build-macos-portable.sh .
2046
chmod +x build-macos-portable.sh
21-
./build-macos-portable.sh -t -a
47+
./build-macos-portable.sh -t -a -c -o 13.0
48+
ccache -sp
49+
50+
- name: Run Tests
51+
run: |
52+
cd build
53+
ctest --output-on-failure --timeout 1800
2254
2355
- name: Upload artifacts
2456
uses: actions/upload-artifact@master

0 commit comments

Comments
 (0)