pmaports/.gitlab-ci
Clayton Craft 17720fa870
gitlab-ci: disable ccache when building changed aports (MR 2020)
This disables ccache in the CI when building packages. I think ccache is
not necessary since the CI will never build a package twice in the same
pipeline, and ccache dir is not preserved for use between pipelines.
There is a real time cost to compiling with ccache enabled on the
initial compile (compressing objects for cache, etc), and some testing
with building the linux-purism-librem5 kernel in the CI shows this cost
can be significant... ~160 minutes when ccache is enabled vs ~105
minutes when it is disabled with this patch.

kernel compile CI runs referenced:
https://gitlab.com/postmarketOS/pmaports/-/jobs/1087602863
https://gitlab.com/postmarketOS/pmaports/-/jobs/1087956999

Some testing on my laptop using osk-sdl with and without ccache for
initial compile:

ccache disabled:
$ rm _build -r && CCACHE_DISABLE=1 meson _build >/dev/null && CCACHE_DISABLE=1 time meson compile -C _build
ninja: Entering directory `_build'
[10/10] Linking target osk-sdl
7.76
$ rm _build -r && CCACHE_DISABLE=1 meson _build >/dev/null && CCACHE_DISABLE=1 time meson compile -C _build
ninja: Entering directory `_build'
[10/10] Linking target osk-sdl
7.89
$ rm _build -r && CCACHE_DISABLE=1 meson _build >/dev/null && CCACHE_DISABLE=1 time meson compile -C _build
ninja: Entering directory `_build'
[10/10] Linking target osk-sdl
7.71

ccache enabled:
$ rm /tmp/ccache _build -r && CCACHE_DIR=/tmp/ccache meson _build >/dev/null&& CCACHE_DIR=/tmp/ccache time meson compile -C _build
ninja: Entering directory `_build'
[10/10] Linking target osk-sdl
8.62
$ rm /tmp/ccache _build -r && CCACHE_DIR=/tmp/ccache meson _build >/dev/null&& CCACHE_DIR=/tmp/ccache time meson compile -C _build
ninja: Entering directory `_build'
[10/10] Linking target osk-sdl
8.46
$ rm /tmp/ccache _build -r && CCACHE_DIR=/tmp/ccache meson _build >/dev/null&& CCACHE_DIR=/tmp/ccache time meson compile -C _build
ninja: Entering directory `_build'
[10/10] Linking target osk-sdl
8.54
2021-03-11 19:40:43 +01:00
..
testcases CI: Add non-free as an expected directory APKBUILDs (MR 1868) 2021-02-23 22:10:07 +01:00
apkbuild-linting.py CI: use pmbootstrap lint for checking packages (MR 1132) 2020-04-18 11:50:02 +02:00
build.sh CI: build packages on all arches (MR 802) 2020-09-10 22:22:57 -07:00
build_changed_aports.py gitlab-ci: disable ccache when building changed aports (MR 2020) 2021-03-11 19:40:43 +01:00
check_changed_aports_versions.py CI: bump copyright to 2021 2021-01-08 00:16:08 +01:00
check_devices_in_wiki.py Introduce support for "unmaintained" devices (MR 1912) 2021-02-15 23:24:06 +01:00
common.py CI: bump copyright to 2021 2021-01-08 00:16:08 +01:00
move_logs.sh CI: bump copyright to 2021 2021-01-08 00:16:08 +01:00
run_testcases.sh CI: bump copyright to 2021 2021-01-08 00:16:08 +01:00
shellcheck.sh CI: bump copyright to 2021 2021-01-08 00:16:08 +01:00