windsource / picus

Connects to Woodpecker CI and dynamically creates an agent in the cloud.
MIT License
40 stars 4 forks source link

Use static linking #13

Closed windsource closed 4 months ago

windsource commented 4 months ago

In order to provide picus binaries that can be used with all Linux distirbution, this PR changes to statically linked binaries for all platform using musl. Also the CI build is using arm64 platforms as those are faster and cheaper (Hetzner cloud).

Update

Actually the x86_64 CI build seems to be faster. A comparison:

hcloud instance vCPU RAM build time
CAX31 (arm64) 8 16 GB 23 minutes
CPX31 (x86_64) 4 8 GB 17 minutes

Even when parallizing the build steps on arm64 the build time (18 minutes) was worse than non-parallized on x86_64. So I switched back to x86_64 builds.