-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 1.17 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and publish Linux TDLib binaries
on:
workflow_dispatch:
push:
tags:
- "aiotdlib_*"
jobs:
build_ubuntu:
name: Build Linux x86_64
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
path: tdlib
- name: Build TDLib
env:
CXXFLAGS: "-stdlib=libc++"
CC: "/usr/bin/clang-18"
CXX: "/usr/bin/clang++-18"
run: |
sudo apt-get install make zlib1g-dev libssl-dev gperf php-cli cmake clang-14 libc++-dev libc++abi-dev
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DTD_ENABLE_LTO=ON -DCMAKE_AR=/usr/bin/llvm-ar-18 -DCMAKE_NM=/usr/bin/llvm-nm-18 -DCMAKE_OBJDUMP=/usr/bin/llvm-objdump-18 -DCMAKE_RANLIB=/usr/bin/llvm-ranlib-18 -S ./tdlib -B ./build
cmake --build ./build --target tdjson --parallel 2
strip --strip-all ./build/libtdjson.so.*
mv -v ./build/libtdjson.so.* ./build/libtdjson_linux_amd64.so
- name: Release artifacts to packages
uses: softprops/action-gh-release@v1
with:
files: build/libtdjson_linux_amd64.so