mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
85b5be4e70
* Use ninja build tool and compile blockchain-explorer Ninja builds TON much faster; * Use clang instead of gcc * remove blockchain-explorer since target not found on github action * move ccpcheck to other gitaction * run nativelib-java only against wallets branch for now * rename gitaction * Update windows2019x64-tonlib-java.yml * Update windows2019x64-tonlib-java.yml * Update macos-10.15-tonlib-java.yml * Update windows2019x64-tonlib-java.yml * Update windows2019x64-tonlib-java.yml
50 lines
No EOL
1.4 KiB
YAML
50 lines
No EOL
1.4 KiB
YAML
name: Ubuntu 18.04 tonlib-java
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'wallets'
|
|
|
|
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 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
|
|
|
|
cd example/android/
|
|
mkdir build
|
|
cd build
|
|
cmake -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 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: tonlib-ubuntu-java
|
|
path: artifacts |