2022-10-27 06:13:50 +00:00
|
|
|
name: Ubuntu 18.04 Compile
|
2021-02-09 10:15:47 +00:00
|
|
|
|
2022-10-27 06:13:50 +00:00
|
|
|
on: [push,workflow_dispatch,workflow_call]
|
2021-02-09 10:15:47 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2021-02-23 13:24:02 +00:00
|
|
|
runs-on: ubuntu-18.04
|
2021-02-09 10:15:47 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2022-10-27 06:13:50 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-02-23 13:24:02 +00:00
|
|
|
with:
|
2021-02-09 10:15:47 +00:00
|
|
|
submodules: 'recursive'
|
2022-05-25 18:50:11 +00:00
|
|
|
|
|
|
|
- name: Install libraries
|
2021-02-09 10:15:47 +00:00
|
|
|
run: |
|
2022-05-25 18:50:11 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev ninja-build
|
|
|
|
|
|
|
|
- name: Configure & Build
|
2021-02-09 10:15:47 +00:00
|
|
|
run: |
|
2022-05-25 18:50:11 +00:00
|
|
|
export CC=$(which clang)
|
|
|
|
export CXX=$(which clang++)
|
|
|
|
export CCACHE_DISABLE=1
|
|
|
|
mkdir build
|
2021-02-09 10:15:47 +00:00
|
|
|
cd build
|
2022-05-25 18:50:11 +00:00
|
|
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
ninja fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork
|
2022-01-12 13:35:15 +00:00
|
|
|
|
2021-02-09 10:15:47 +00:00
|
|
|
- name: find & copy binaries
|
|
|
|
run: |
|
2022-05-03 11:31:16 +00:00
|
|
|
mkdir artifacts
|
|
|
|
cp build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/validator-engine-console/validator-engine-console build/tonlib/tonlib-cli build/tonlib/libtonlibjson.so.0.5 build/http/http-proxy build/rldp-http-proxy/rldp-http-proxy build/dht-server/dht-server build/lite-client/lite-client build/validator-engine/validator-engine build/utils/generate-random-id build/utils/json2tlo build/adnl/adnl-proxy artifacts
|
2022-01-12 13:35:15 +00:00
|
|
|
|
2021-02-09 10:15:47 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: ton-binaries
|
2022-05-03 11:31:16 +00:00
|
|
|
path: artifacts
|