Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use static linking #13

Merged
merged 6 commits into from
Jul 21, 2024
Merged

Use static linking #13

merged 6 commits into from
Jul 21, 2024

Conversation

windsource
Copy link
Owner

@windsource windsource commented Jul 21, 2024

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.

@windsource windsource changed the title Use static linking and arm64 CI build Use static linking Jul 21, 2024
@windsource windsource merged commit eb161f0 into main Jul 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant