mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Compile TON against Ubuntu 18.04, 20.04 and 22.04 in a single github action (#415)
* Update and rename ubuntu-18.04-compile.yml to ubuntu-compile.yml * Update ubuntu-compile.yml segregate output binaries
This commit is contained in:
parent
e916363d5a
commit
6fb01df1d2
2 changed files with 40 additions and 40 deletions
40
.github/workflows/ubuntu-18.04-compile.yml
vendored
40
.github/workflows/ubuntu-18.04-compile.yml
vendored
|
@ -1,40 +0,0 @@
|
||||||
name: C/C++ CI Ubuntu 18.04 Compile
|
|
||||||
|
|
||||||
on: [push,workflow_dispatch]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
|
|
||||||
- name: Install libraries
|
|
||||||
run: |
|
|
||||||
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
|
|
||||||
run: |
|
|
||||||
export CC=$(which clang)
|
|
||||||
export CXX=$(which clang++)
|
|
||||||
export CCACHE_DISABLE=1
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: find & copy binaries
|
|
||||||
run: |
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@master
|
|
||||||
with:
|
|
||||||
name: ton-binaries
|
|
||||||
path: artifacts
|
|
40
.github/workflows/ubuntu-compile.yml
vendored
Normal file
40
.github/workflows/ubuntu-compile.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Ubuntu Compile
|
||||||
|
|
||||||
|
on: [push,workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
- name: Install libraries
|
||||||
|
run: |
|
||||||
|
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
|
||||||
|
run: |
|
||||||
|
export CC=$(which clang)
|
||||||
|
export CXX=$(which clang++)
|
||||||
|
export CCACHE_DISABLE=1
|
||||||
|
mkdir build-${{ matrix.os }}
|
||||||
|
cd build-${{ matrix.os }}
|
||||||
|
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
|
||||||
|
- name: find & copy binaries
|
||||||
|
run: |
|
||||||
|
mkdir artifacts-${{ matrix.os }}
|
||||||
|
cp build-${{ matrix.os }}/crypto/fift build-${{ matrix.os }}/crypto/tlbc build-${{ matrix.os }}/crypto/func build-${{ matrix.os }}/crypto/create-state build-${{ matrix.os }}/validator-engine-console/validator-engine-console build-${{ matrix.os }}/tonlib/tonlib-cli build-${{ matrix.os }}/tonlib/libtonlibjson.so.0.5 build-${{ matrix.os }}/http/http-proxy build-${{ matrix.os }}/rldp-http-proxy/rldp-http-proxy build-${{ matrix.os }}/dht-server/dht-server build-${{ matrix.os }}/lite-client/lite-client build-${{ matrix.os }}/validator-engine/validator-engine build-${{ matrix.os }}/utils/generate-random-id build-${{ matrix.os }}/utils/json2tlo build-${{ matrix.os }}/adnl/adnl-proxy artifacts-${{ matrix.os }}
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: ton-binaries-${{ matrix.os }}
|
||||||
|
path: artifacts-${{ matrix.os }}
|
Loading…
Add table
Add a link
Reference in a new issue