Skip to content

Commit 050a984

Browse files
authored
Merge pull request #1512 from ton-blockchain/testnet
Merge developer branch
2 parents 59a8cf0 + 3c245c6 commit 050a984

File tree

144 files changed

+3651
-1479
lines changed

Some content is hidden

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

144 files changed

+3651
-1479
lines changed

.github/script/amd64-20.04.Dockerfile

-20
This file was deleted.

.github/script/amd64-22.04.Dockerfile

-20
This file was deleted.

.github/script/arm64-20.04.Dockerfile

-20
This file was deleted.

.github/script/arm64-22.04.Dockerfile

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Ubuntu TON build (AppImages, arm64)
2+
3+
on: [push,workflow_dispatch,workflow_call]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-22.04-arm
8+
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
with:
13+
submodules: 'recursive'
14+
15+
- name: Install system libraries
16+
run: |
17+
sudo apt update
18+
sudo apt install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev
19+
sudo apt remove libgsl-dev
20+
21+
- name: Install clang-16
22+
run: |
23+
wget https://apt.llvm.org/llvm.sh
24+
chmod +x llvm.sh
25+
sudo ./llvm.sh 16 all
26+
27+
- name: Build TON
28+
run: |
29+
git submodule sync --recursive
30+
git submodule update
31+
cp assembly/native/build-ubuntu-appimages.sh .
32+
chmod +x build-ubuntu-appimages.sh
33+
./build-ubuntu-appimages.sh -a
34+
35+
- name: Make AppImages
36+
run: |
37+
cp assembly/appimage/create-appimages.sh .
38+
cp assembly/appimage/AppRun .
39+
cp assembly/appimage/ton.png .
40+
chmod +x create-appimages.sh
41+
./create-appimages.sh aarch64
42+
rm -rf artifacts
43+
44+
45+
- name: Build TON libs
46+
run: |
47+
cp assembly/native/build-ubuntu-portable-libs.sh .
48+
chmod +x build-ubuntu-portable-libs.sh
49+
./build-ubuntu-portable-libs.sh -a
50+
cp ./artifacts/libtonlibjson.so appimages/artifacts/
51+
cp ./artifacts/libemulator.so appimages/artifacts/
52+
53+
- name: Upload artifacts
54+
uses: actions/upload-artifact@master
55+
with:
56+
name: ton-arm64-linux
57+
path: appimages/artifacts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Ubuntu TON build (shared, arm64)
2+
3+
on: [push,workflow_dispatch,workflow_call]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-22.04-arm, ubuntu-24.04-arm]
11+
runs-on: ${{ matrix.os }}
12+
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v3
16+
with:
17+
submodules: 'recursive'
18+
19+
- name: Install system libraries
20+
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+
24+
- if: matrix.os != 'ubuntu-24.04-arm'
25+
name: Install llvm-16
26+
run: |
27+
wget https://apt.llvm.org/llvm.sh
28+
chmod +x llvm.sh
29+
sudo ./llvm.sh 16 all
30+
31+
- name: Build TON
32+
run: |
33+
git submodule sync --recursive
34+
git submodule update
35+
cp assembly/native/build-ubuntu-shared.sh .
36+
chmod +x build-ubuntu-shared.sh
37+
./build-ubuntu-shared.sh -t -a
38+
39+
- name: Upload artifacts
40+
uses: actions/upload-artifact@master
41+
with:
42+
name: ton-binaries-${{ matrix.os }}
43+
path: artifacts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Ubuntu TON build (AppImages, x86-64)
2+
3+
on: [push,workflow_dispatch,workflow_call]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
with:
13+
submodules: 'recursive'
14+
15+
- name: Install system libraries
16+
run: |
17+
sudo apt update
18+
sudo apt install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev
19+
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+
27+
- name: Install clang-16
28+
run: |
29+
wget https://apt.llvm.org/llvm.sh
30+
chmod +x llvm.sh
31+
sudo ./llvm.sh 16 all
32+
33+
- name: Build TON
34+
run: |
35+
git submodule sync --recursive
36+
git submodule update
37+
cp assembly/native/build-ubuntu-appimages.sh .
38+
chmod +x build-ubuntu-appimages.sh
39+
./build-ubuntu-appimages.sh -a
40+
41+
- name: Make AppImages
42+
run: |
43+
cp assembly/appimage/create-appimages.sh .
44+
cp assembly/appimage/AppRun .
45+
cp assembly/appimage/ton.png .
46+
chmod +x create-appimages.sh
47+
./create-appimages.sh x86_64
48+
rm -rf artifacts
49+
50+
51+
- name: Build TON libs
52+
run: |
53+
cp assembly/native/build-ubuntu-portable-libs.sh .
54+
chmod +x build-ubuntu-portable-libs.sh
55+
./build-ubuntu-portable-libs.sh -a
56+
cp ./artifacts/libtonlibjson.so appimages/artifacts/
57+
cp ./artifacts/libemulator.so appimages/artifacts/
58+
59+
- name: Upload artifacts
60+
uses: actions/upload-artifact@master
61+
with:
62+
name: ton-x86_64-linux
63+
path: appimages/artifacts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: MacOS-13 TON build (portable, x86-64)
2+
3+
on: [push,workflow_dispatch,workflow_call]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-13
8+
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
with:
13+
submodules: 'recursive'
14+
15+
- name: Build TON
16+
run: |
17+
git submodule sync --recursive
18+
git submodule update
19+
cp assembly/native/build-macos-portable.sh .
20+
chmod +x build-macos-portable.sh
21+
./build-macos-portable.sh -t -a
22+
23+
- name: Upload artifacts
24+
uses: actions/upload-artifact@master
25+
with:
26+
name: ton-x86_64-macos
27+
path: artifacts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: MacOS-14 TON build (portable, arm64)
2+
3+
on: [push,workflow_dispatch,workflow_call]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-14
8+
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
with:
13+
submodules: 'recursive'
14+
15+
- name: Build TON
16+
run: |
17+
git submodule sync --recursive
18+
git submodule update
19+
cp assembly/native/build-macos-portable.sh .
20+
chmod +x build-macos-portable.sh
21+
./build-macos-portable.sh -t -a
22+
23+
- name: Upload artifacts
24+
uses: actions/upload-artifact@master
25+
with:
26+
name: ton-arm64-macos
27+
path: artifacts

.github/workflows/build-ton-wasm-emscripten.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,27 @@ jobs:
2525
chmod +x fift-func-wasm-build-ubuntu.sh
2626
./fift-func-wasm-build-ubuntu.sh -a
2727
28+
- name: Prepare test
29+
run: |
30+
cp assembly/wasm/*.fc .
31+
git clone https://github.com/ton-community/func-js.git
32+
cd func-js
33+
npm install
34+
npm run build
35+
npm link
36+
37+
- name: Test TON WASM artifacts
38+
run: |
39+
base64 -w 0 artifacts/funcfiftlib.wasm > artifacts/funcfiftlib.wasm.js
40+
printf "module.exports = { FuncFiftLibWasm: '" | cat - artifacts/funcfiftlib.wasm.js > temp.txt && mv temp.txt artifacts/funcfiftlib.wasm.js
41+
echo "'}" >> artifacts/funcfiftlib.wasm.js
42+
cp artifacts/funcfiftlib.wasm.js func-js/node_modules/@ton-community/func-js-bin/dist/funcfiftlib.wasm.js
43+
cp artifacts/funcfiftlib.js func-js/node_modules/@ton-community/func-js-bin/dist/funcfiftlib.js
44+
npx func-js stdlib.fc intrinsics.fc --fift ./output.f
45+
46+
2847
- name: Upload artifacts
2948
uses: actions/upload-artifact@master
3049
with:
31-
name: ton-wasm-binaries
50+
name: ton-wasm
3251
path: artifacts

0 commit comments

Comments
 (0)