Merge pull request #341 from newton-blockchain/rebased_wallets #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 | |
- name: cmake all | |
run: | | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
- name: make all | |
run: | | |
cd build | |
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 | |
- name: build native-lib | |
run: | | |
export JAVA_AWT_LIBRARY=NotNeeded | |
export JAVA_JVM_LIBRARY=NotNeeded | |
export JAVA_INCLUDE_PATH=${JAVA_HOME}/include | |
export JAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include | |
export JAVA_INCLUDE_PATH2=${JAVA_HOME}/include/linux | |
git fetch --all | |
git pull --all | |
git checkout wallets | |
cd example/android/ | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DTON_ONLY_TONLIB=ON .. | |
cmake --build . --target prepare_cross_compiling | |
cmake --build . --target native-lib | |
- name: find & copy binaries | |
run: | | |
mkdir -p artifacts/tonlib-java | |
cp --parents 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 | |
cp example/android/src/drinkless/org/ton/TonApi.java artifacts/tonlib-java/ | |
cp example/android/build/libnative-lib.so artifacts/tonlib-java/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@master | |
with: | |
name: ton-binaries | |
path: artifacts |