Skip to content

Speed up GitLab CI

Nicolás Alvarez requested to merge work/faster-ci into master

Currently the build_local_ubuntu_2004 CI job is using 'make' without any parallelism. Our 8-core build server is using only 1 core to compile kmymoney. Switching to ninja makes it use all CPUs and it's much faster.

In addition, the dependency installation with apt is taking a long time. apt uses several fsync() calls on each package it installs, and that's very slow, especially on non-SSD. eatmydata turns fsync into no-op, which makes package installation much faster (it can cause corruption if there's power loss or similar, but that doesn't matter in CI where we throw away the whole container anyway).

With these two changes, the GitLab CI job speeds up from 37 minutes to 8 minutes.

Merge request reports