mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
adding natively portable binaries (all statically linked with libc++, without nixpkgs help) for x86-64 linux
This commit is contained in:
parent
c5a1234ebc
commit
3a0f0b53f5
2 changed files with 41 additions and 3 deletions
36
.github/workflows/build-ton-linux-x86-64-portable.yml
vendored
Normal file
36
.github/workflows/build-ton-linux-x86-64-portable.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Ubuntu TON build (portable, 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 libc++-dev libc++abi-dev
|
||||||
|
|
||||||
|
- name: Build TON
|
||||||
|
run: |
|
||||||
|
git submodule sync --recursive
|
||||||
|
git submodule update
|
||||||
|
cp assembly/native/build-ubuntu-portable.sh .
|
||||||
|
chmod +x build-ubuntu-portable.sh
|
||||||
|
./build-ubuntu-portable.sh -t -a
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: ton-binaries-${{ matrix.os }}
|
||||||
|
path: artifacts
|
|
@ -1,7 +1,7 @@
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
#sudo apt-get update
|
#sudo apt-get update
|
||||||
#sudo apt-get install -y build-essential git cmake ninja-build automake libtool texinfo autoconf
|
#sudo apt-get install -y build-essential git cmake ninja-build automake libtool texinfo autoconf libc++-dev libc++abi-dev
|
||||||
|
|
||||||
with_tests=false
|
with_tests=false
|
||||||
with_artifacts=false
|
with_artifacts=false
|
||||||
|
@ -24,8 +24,8 @@ else
|
||||||
rm -rf .ninja* CMakeCache.txt
|
rm -rf .ninja* CMakeCache.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CC=$(which clang-16)
|
export CC=$(which clang)
|
||||||
export CXX=$(which clang++-16)
|
export CXX=$(which clang++)
|
||||||
export CCACHE_DISABLE=1
|
export CCACHE_DISABLE=1
|
||||||
|
|
||||||
if [ ! -d "lz4" ]; then
|
if [ ! -d "lz4" ]; then
|
||||||
|
@ -101,6 +101,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake -GNinja .. \
|
cmake -GNinja .. \
|
||||||
|
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
|
||||||
|
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" \
|
||||||
-DPORTABLE=1 \
|
-DPORTABLE=1 \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DOPENSSL_FOUND=1 \
|
-DOPENSSL_FOUND=1 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue