fewensa / telegram-client

Rust Telegram Client
MIT License
93 stars 13 forks source link

Full travis builds #6

Open 0xpr03 opened 5 years ago

0xpr03 commented 5 years ago

We're currently not running any real builds on this. Having full builds would allow for direct identification of errors. I guess this is mainly due to the problematic tdlib dependency. For starters we could host a tdlib.so somewhere (for example git) that travis can download. I could also host a tdlib on my own. If we also enable caching it would reduce build times drastically when rtdlib isn't changed.

fewensa commented 5 years ago

Yes , you are right, I already created a repository tdlib-dylib , The function of this repository is to compile td, and upload libtdjson.so to this repository, build branch is compile code, and master branch is save so file.

But I have encountered some problems

ls: /source/build/libtdjson*: No such file or directory

I don't know why travis CI can't to copy file , but actually there is, I found some solution, but not work. so tdlib-dylib was suspended by me. wait unit telegrem-client is stable again.

Maybe you can help me. In my plan, I should compile the dynamic dependency library of all systems. and all version of td release page.

And now i trying to make rtdlib compile faster, expecting good results.

tingfeng-key commented 5 years ago

good, i trying build libtdjson, thank

dorak88783 commented 3 years ago

I could try to help as well - it'd be a challenge but that would be good for me :)

I'm a bit lost though with all the projects - what's the difference/relation between

https://github.com/fewensa/telegram-client https://github.com/fewensa/rtdlib-sys https://github.com/fewensa/tdlib-dylib https://github.com/fewensa/fantasy

dorak88783 commented 3 years ago

I made a repository https://github.com/dorak88783/tdlib-builder which has automatic pre-compiled binaries available. You could use those in the CI flow.

fewensa commented 3 years ago

Hi @dorak88783 very thanks for you , I think it can be expanded in your repository.

fewensa commented 3 years ago

@dorak88783 Your project can support the tdjson.lib of all different versions of different systems? in your plain

dorak88783 commented 3 years ago

I didn't try yet to build old versions. At least for 1.7 onwards they'll be there, so maybe just add only these tests on the 1.7 and higher versions?