GDC CI

Iain Buclaw ibuclaw at gdcproject.org
Wed Sep 9 23:13:38 UTC 2020


On Wednesday, 9 September 2020 at 18:32:07 UTC, wjoe wrote:
> On Wednesday, 9 September 2020 at 12:37:37 UTC, wjoe wrote:
>> On Wednesday, 9 September 2020 at 12:13:32 UTC, kinke wrote:
>>> On Wednesday, 9 September 2020 at 11:33:22 UTC, wjoe wrote:
>>>> I suspect that maybe the compiler wasn't properly installed 
>>>> in the container ?
>>>
>>> Maybe just a typo in your Dockerfile? You're installing 
>>> `g++9`, but the package name is `g++-9`.
>>
>> Ahh good catch! It works now! Thanks :)
>
> The build as well as the unittests finished successfully.
> The entire run took close to 70  minutes. This was a linux 
> container with 4 CPUs and 10G RAM.
>

Sounds about right.  There are a couple heavy modules that 
instantiate tens of thousands of functions when building phobos 
unittests.

> Which files should be kept once the task completed and what 
> should happen with them ?
> On success I could add a package task.
>

There's 'make install'.  I probably wouldn't prune anything 
copied during that recipe, as you'll lose integration with C, C++ 
and LTO compilers if any of those components are missing.

> Next up is to test if Cirrus CI can handle the remaining 
> platforms since the limits are lower than for linux containers. 
> Unit tests almost hit the 9G RAM mark. Mac is a single core VM 
> on community cluster.
>

You'll need to implement DSO handling on Darwin, there's a little 
bit of compiler support code, and the rest is in the library.  
I've got a patch somewhere with maybe 90% of the work done.  From 
what I recall there was some weirdness with how dynamic loading 
works.


More information about the D.gnu mailing list