mirror of https://gerrit.osmocom.org/osmo-ci
jobs/master,gerrit: use ccache to speed up builds
Related: OS#5848 Change-Id: I81f244ca09e660698df617549d70476fc96255e2changes/42/31042/3
parent
c914967c53
commit
945687b030
|
@ -90,3 +90,15 @@ Other labels indicate specific software/hardware works here, e.g.:
|
|||
- hdlc
|
||||
- osmo-gsm-tester
|
||||
- podman
|
||||
|
||||
*ccache*
|
||||
|
||||
The jobs from master-builds and gerrit-verifications use ccache. View the
|
||||
statistics with SSH on the build nodes with:
|
||||
|
||||
$ CCACHE_DIR=~/ccache/gerrit-verifications ccache -s
|
||||
$ CCACHE_DIR=~/ccache/master-builds ccache -s
|
||||
|
||||
Note that running multiple jobs in parallel influence the ccache statistics,
|
||||
and it's impossible to tell which job caused which change in the stats (that's
|
||||
why they are not printed at the end of each job, it would be confusing).
|
||||
|
|
|
@ -51,14 +51,17 @@
|
|||
docker run --rm=true \
|
||||
--cap-add SYS_PTRACE \
|
||||
-e ASCIIDOC_WARNINGS_CHECK="1" \
|
||||
-e CCACHE_DIR="/ccache" \
|
||||
-e HOME=/build \
|
||||
-e JOB_NAME="$JOB_NAME" \
|
||||
-e MAKE=make \
|
||||
-e OSMOPY_DEBUG_TCP_SOCKETS="1" \
|
||||
-e OSMO_GSM_MANUALS_DIR="/opt/osmo-gsm-manuals" \
|
||||
-e PATH="/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
|
||||
-e PARALLEL_MAKE="$PARALLEL_MAKE" \
|
||||
-e WITH_MANUALS="1" \
|
||||
-w /build -i -u build \
|
||||
-v "$HOME/ccache/gerrit-verifications:/ccache" \
|
||||
-v "$PWD:/build" \
|
||||
docker_img: '$USER/debian-buster-jenkins'
|
||||
docker_img_erlang: '$USER/debian-bullseye-erlang'
|
||||
|
@ -678,6 +681,10 @@
|
|||
description: set by gerrit-{repos} job
|
||||
|
||||
builders:
|
||||
- shell: |-
|
||||
CCACHE_DIR="$HOME/ccache/gerrit-verifications"
|
||||
mkdir -p "$CCACHE_DIR"
|
||||
chown osmocom-build:osmocom-build "$CCACHE_DIR"
|
||||
- shell: '{obj:cmd}'
|
||||
|
||||
publishers:
|
||||
|
|
|
@ -25,17 +25,20 @@
|
|||
docker run --rm=true \
|
||||
--cap-add SYS_PTRACE \
|
||||
-e ASCIIDOC_WARNINGS_CHECK="1" \
|
||||
-e CCACHE_DIR="/ccache" \
|
||||
-e HOME=/build \
|
||||
-e JOB_NAME="$JOB_NAME" \
|
||||
-e MAKE=make \
|
||||
-e OSMOPY_DEBUG_TCP_SOCKETS="1" \
|
||||
-e OSMO_GSM_MANUALS_DIR="/opt/osmo-gsm-manuals" \
|
||||
-e PATH="/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
|
||||
-e PARALLEL_MAKE="$PARALLEL_MAKE" \
|
||||
-e PUBLISH="1" \
|
||||
-e SSH_AUTH_SOCK=/ssh-agent \
|
||||
-e WITH_MANUALS="1" \
|
||||
-w /build -i -u build \
|
||||
-v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
|
||||
-v "$HOME/ccache/master-builds:/ccache" \
|
||||
-v "$PWD:/build" \
|
||||
-v "$HOME/.ssh:/home/build/.ssh:ro" \
|
||||
docker_img: '$USER/debian-buster-jenkins'
|
||||
|
@ -545,6 +548,10 @@
|
|||
- timed: "H H * * *"
|
||||
|
||||
builders:
|
||||
- shell: |-
|
||||
CCACHE_DIR="$HOME/ccache/master-builds"
|
||||
mkdir -p "$CCACHE_DIR"
|
||||
chown osmocom-build:osmocom-build "$CCACHE_DIR"
|
||||
- shell: '{obj:cmd}'
|
||||
|
||||
publishers:
|
||||
|
|
Loading…
Reference in New Issue