tdlight/.github/workflows/build.yaml

35 lines
950 B
YAML
Raw Normal View History

2020-11-10 13:04:15 +01:00
name: Build TDLib
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
2020-11-10 13:11:00 +01:00
- name: Cache Primes
id: cache-primes
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ runner.os }}-ccache-all
restore-keys: |
${{ runner.os }}-ccache-
- name: Update archives
run: sudo apt-get update
2020-11-10 13:04:15 +01:00
- name: Install build tools
2020-11-10 13:11:00 +01:00
run: sudo apt-get install make git zlib1g-dev libssl-dev gperf php cmake clang-10 libc++-dev libc++abi-dev ccache
2020-11-10 13:04:15 +01:00
- name: Build
run: |
mkdir build
cd build
CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-10 CXX=/usr/bin/clang++-10 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib ..
cmake --build . --target install