mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:06:12 +00:00
ci: Autodetect if cacche is available to print the stats
Always print the stats if ccache executable exists, this way we can get rid of one extra env var. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5543>
This commit is contained in:
parent
5685db7358
commit
6c7956ab93
2 changed files with 11 additions and 5 deletions
|
@ -252,7 +252,6 @@ commitlint:
|
||||||
|
|
||||||
.build_ccache_vars:
|
.build_ccache_vars:
|
||||||
variables:
|
variables:
|
||||||
HAVE_CCACHE: 'true'
|
|
||||||
CCACHE_COMPILERCHECK: 'content'
|
CCACHE_COMPILERCHECK: 'content'
|
||||||
CCACHE_COMPRESS: 'true'
|
CCACHE_COMPRESS: 'true'
|
||||||
CCACHE_BASEDIR: '/cache/gstreamer/gstreamer'
|
CCACHE_BASEDIR: '/cache/gstreamer/gstreamer'
|
||||||
|
@ -518,7 +517,6 @@ build macos:
|
||||||
- '.macos image'
|
- '.macos image'
|
||||||
variables:
|
variables:
|
||||||
# gst-libav/ffmpeg throws Wundef errors
|
# gst-libav/ffmpeg throws Wundef errors
|
||||||
HAVE_CCACHE: 'false'
|
|
||||||
GST_WERROR: "false"
|
GST_WERROR: "false"
|
||||||
MESON_ARGS: "${DEFAULT_MESON_ARGS}"
|
MESON_ARGS: "${DEFAULT_MESON_ARGS}"
|
||||||
SUBPROJECTS_CACHE_DIR: "/Users/gst-ci/subprojects"
|
SUBPROJECTS_CACHE_DIR: "/Users/gst-ci/subprojects"
|
||||||
|
|
|
@ -10,8 +10,6 @@ set -eux
|
||||||
# GST_WERROR: make warning fatal or not
|
# GST_WERROR: make warning fatal or not
|
||||||
# must be a string of a boolean, "true" or "false". Not yaml bool.
|
# must be a string of a boolean, "true" or "false". Not yaml bool.
|
||||||
# SUBPROJECTS_CACHE_DIR: The location in the image of the subprojects cache
|
# SUBPROJECTS_CACHE_DIR: The location in the image of the subprojects cache
|
||||||
# HAVE_CCACHE: whether we have ccache available
|
|
||||||
# must be a string of a boolean, "true" or "false". Not yaml bool.
|
|
||||||
|
|
||||||
export RUSTUP_HOME="/usr/local/rustup"
|
export RUSTUP_HOME="/usr/local/rustup"
|
||||||
export CARGO_HOME="/usr/local/cargo"
|
export CARGO_HOME="/usr/local/cargo"
|
||||||
|
@ -29,8 +27,18 @@ fi
|
||||||
|
|
||||||
date -R
|
date -R
|
||||||
meson setup build/ --native-file ./ci/meson/gst-ci-cflags.ini ${ARGS}
|
meson setup build/ --native-file ./ci/meson/gst-ci-cflags.ini ${ARGS}
|
||||||
|
date -R
|
||||||
|
|
||||||
|
if command -v ccache
|
||||||
|
then
|
||||||
|
ccache --show-stats
|
||||||
|
fi
|
||||||
|
|
||||||
date -R
|
date -R
|
||||||
meson compile -C build/
|
meson compile -C build/
|
||||||
date -R
|
date -R
|
||||||
|
|
||||||
test "$HAVE_CCACHE" = "true" && ccache --show-stats
|
if command -v ccache
|
||||||
|
then
|
||||||
|
ccache --show-stats
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue