Travis CI Issue

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Travis CI Issue

Post by nexos »

Hello,
I was wondering how you do automated builds of an Operating system in Travis CI, as I am using an i686-elf cross compiler. How do you install this on Travis CI?
Thank you for your help.
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: Travis CI Issue

Post by klange »

I have a Docker image on the Hub with my build tools (which is pretty much just the gcc/binutils cross compiler), and my Travis pipeline uses that to build. It takes Travis ~10s to download the Docker image. This also has the benefit that anyone can grab the Docker image to run builds without having to set up a toolchain themselves.

Travis config: https://github.com/klange/toaruos/blob/ ... travis.yml
Build example: https://travis-ci.org/github/klange/toa ... /684597098
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: Travis CI Issue

Post by nexos »

Ok that solves it! Thank you!
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
Post Reply