Niels Möller <nisse-samgb31n2u5icsjq0eh...@public.gmane.org> writes:

> 1. Switch to the cross-fedora38 image
>    
> (https://gitlab.com/gnutls/build-images/-/blob/master/docker-cross-fedora38/Dockerfile?ref_type=heads).
>
> 2. Use some official debian image (not maintained by gnutls), and
>    install needed cross compilers as part of each job.
>
> 3. Maintain a separate image (or images) for use by Nettle ci builds.
>    E.g., I'm considering adding more tests depending on valgrind, so
>    then it would be nice to include valgrind in the image. And it would
>    be nice if all apt commands in the ci scripts could be eliminated.

I think that it would be better for nettle to maintain separate
build-images and not rely on other project's build-images.  We could add
'gnutls/nettle-build-images' for this if you want?  Or is there some
other more canonical home for nettle on gitlab already?

> Efficiency could matter: extra work, like installing lots of packages as
> part of each ci job, makes the ci more expensive, and I don't know what
> limits there are to the gnutls project on gitlab, but by default. So
> advice appreciated.

Compared to gnutls pipeline, I don't think the nettle pipeline will be
significant in the resource consumption.  The build/gnutls job takes a
while, and maybe it could be speed up somehow.

My experience is that it can help to have some build image for stable
released well-known OSs but not create one for every single variant.
However looking at build times most of the jobs are 1-3 minutes which is
quite quick already.  I usually don't bother until the jobs start to
take more than 5 minutes to complete.

/Simon

> PS. On the topic on valgrind: Is it possible/practical to use valgrind
> in a cross setting, e.g., an x86_64 host, cross compiling for arm, and
> then use qemu-arm to run an arm valgrind binary in turn running the arm
> binary under test. Or is there some other way to run a cross valgrind?

What do you want to achieve?  If valgrind on arm is the goal, rather
than testing the cross-build setup, it may be simpler to have a macOS
build job with valgrind.

/Simon

Attachment: signature.asc
Description: PGP signature

_______________________________________________
nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se
To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se

Reply via email to