2021-03-26 09:25:06 +00:00
|
|
|
name: C/C++ CI Ubuntu 18.04 Compile
|
2021-02-09 10:15:47 +00:00
|
|
|
|
2021-03-26 09:25:06 +00:00
|
|
|
on: [push,workflow_dispatch]
|
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
|
|
|
|
uses: actions/checkout@v2
|
2021-02-23 13:24:02 +00:00
|
|
|
with:
|
2021-02-09 10:15:47 +00:00
|
|
|
submodules: 'recursive'
|
|
|
|
- name: Run Cppcheck
|
|
|
|
uses: Bedzior/run-cppcheck@master
|
|
|
|
with:
|
|
|
|
enabled checks: all
|
|
|
|
enable inconclusive: true
|
|
|
|
generate report: true
|
|
|
|
- name: Upload report
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: report
|
|
|
|
path: output
|
|
|
|
- name: mkdir
|
|
|
|
run: |
|
|
|
|
mkdir build
|
2022-01-12 13:35:15 +00:00
|
|
|
- name: cmake all
|
2021-02-09 10:15:47 +00:00
|
|
|
run: |
|
|
|
|
cd build
|
2022-01-12 13:35:15 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
- name: make all
|
2021-02-09 10:15:47 +00:00
|
|
|
run: |
|
|
|
|
cd build
|
2022-01-12 13:35:15 +00:00
|
|
|
make -j4 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
|
|
|
|
|
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
|