Skip to content

Commit fbcb9b8

Browse files
committed
Merge branch 'testnet' into archive-import
2 parents 780d75b + a8810e7 commit fbcb9b8

File tree

303 files changed

+9446
-2054
lines changed

Some content is hidden

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

303 files changed

+9446
-2054
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Tonlib Android
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- name: Check out repository
1111
uses: actions/checkout@v3
12-
with:
12+
with:
1313
submodules: 'recursive'
1414

1515
- name: Install system libraries
@@ -18,7 +18,6 @@ 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-
2221
2322
- name: Cache Android NDK
2423
id: cache-android-ndk

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Ubuntu TON build (AppImages, arm64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- name: Check out repository
1111
uses: actions/checkout@v3
12-
with:
12+
with:
1313
submodules: 'recursive'
1414

1515
- name: Date Stamp
@@ -26,9 +26,11 @@ jobs:
2626
2727
- name: Install clang-16
2828
run: |
29-
wget https://apt.llvm.org/llvm.sh
30-
chmod +x llvm.sh
31-
sudo ./llvm.sh 16 clang
29+
lsb_release -a
30+
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
31+
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" | sudo tee /etc/apt/sources.list.d/llvm.list
32+
sudo apt-get -y update
33+
sudo apt-get install -y clang-16
3234
3335
- name: Cache 3pp
3436
id: cache-3pp

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Ubuntu TON build (shared, arm64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -31,9 +31,11 @@ jobs:
3131
- if: matrix.os != 'ubuntu-24.04-arm'
3232
name: Install llvm-16
3333
run: |
34-
wget https://apt.llvm.org/llvm.sh
35-
chmod +x llvm.sh
36-
sudo ./llvm.sh 16 clang
34+
lsb_release -a
35+
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
36+
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" | sudo tee /etc/apt/sources.list.d/llvm.list
37+
sudo apt-get -y update
38+
sudo apt-get install -y clang-16
3739
3840
- name: Cache OpenSSL
3941
id: cache-openssl

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Ubuntu TON build (AppImages, x86-64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- name: Check out repository
1111
uses: actions/checkout@v3
12-
with:
12+
with:
1313
submodules: 'recursive'
1414

1515
- name: Date Stamp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Ubuntu TON build (shared, x86-64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Check out repository
1515
uses: actions/checkout@v3
16-
with:
16+
with:
1717
submodules: 'recursive'
1818

1919
- name: Date Stamp
@@ -59,5 +59,5 @@ jobs:
5959
6060
- name: Run Tests
6161
run: |
62-
cd build
62+
cd build
6363
ctest --output-on-failure --timeout 1800
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Ubuntu TON -Werror build (shared, x86-64)
2+
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-24.04
8+
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
with:
13+
submodules: 'recursive'
14+
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: Install system libraries
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev libjemalloc-dev
25+
26+
- name: Install Clang 21
27+
run: |
28+
wget https://apt.llvm.org/llvm.sh
29+
chmod +x llvm.sh
30+
sudo ./llvm.sh 21 clang
31+
32+
# TODO: Preserve ccache cache between runs once we get rid of warning suppression mappings.
33+
34+
- name: Build TON
35+
run: |
36+
cmake -S . -B build -G Ninja \
37+
-DCMAKE_C_COMPILER=clang-21 \
38+
-DCMAKE_CXX_COMPILER=clang++-21 \
39+
-DCMAKE_BUILD_TYPE=Release \
40+
-DTON_USE_JEMALLOC=ON \
41+
-DTON_USE_LLD=On \
42+
-DTON_WERROR_BUILD=On
43+
ninja -C build

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: MacOS-13 TON build (portable, x86-64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Run Tests
5151
run: |
52-
cd build
52+
cd build
5353
ctest --output-on-failure --timeout 1800
5454
5555
- name: Upload artifacts

.github/workflows/build-ton-macos-14-arm64-portable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: MacOS-14 TON build (portable, arm64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Run Tests
5151
run: |
52-
cd build
52+
cd build
5353
ctest --output-on-failure --timeout 1800
5454
5555
- name: Upload artifacts

.github/workflows/build-ton-macos-15-arm64-shared.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: MacOS-15 TON build (shared, arm64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -36,10 +36,10 @@ jobs:
3636
git submodule update
3737
cp assembly/native/build-macos-shared.sh .
3838
chmod +x build-macos-shared.sh
39-
./build-macos-shared.sh -t -c -o 15.0
39+
./build-macos-shared.sh -t -c -o 16.0
4040
ccache -sp
4141
4242
- name: Run Tests
4343
run: |
44-
cd build
44+
cd build
4545
ctest --output-on-failure --timeout 1800

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: MacOS-14 TON build (shared, arm64)
22

3-
on: [push,workflow_dispatch,workflow_call]
3+
on: [push, pull_request, workflow_dispatch, workflow_call]
44

55
jobs:
66
build:
@@ -41,5 +41,5 @@ jobs:
4141
4242
- name: Run Tests
4343
run: |
44-
cd build
44+
cd build
4545
ctest --output-on-failure --timeout 1800

0 commit comments

Comments
 (0)