mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gitlab: compress deps using xz on master
Results in a better compression for artifacts that are going to be used multiple times.
This commit is contained in:
parent
6c379762c2
commit
18f285f15c
1 changed files with 15 additions and 6 deletions
|
@ -360,7 +360,6 @@ valgrind ges:
|
||||||
|
|
||||||
CERBERO_HOME: "cerbero-build"
|
CERBERO_HOME: "cerbero-build"
|
||||||
CERBERO_SOURCES: "cerbero-sources"
|
CERBERO_SOURCES: "cerbero-sources"
|
||||||
CERBERO_DEPS: "cerbero-deps.tar.gz"
|
|
||||||
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS}"
|
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS}"
|
||||||
CERBERO: "./cerbero-uninstalled -c config/${CONFIG} -c localconf.cbc -m manifest.xml"
|
CERBERO: "./cerbero-uninstalled -c config/${CONFIG} -c localconf.cbc -m manifest.xml"
|
||||||
CERBERO_PACKAGE_ARGS: "-t"
|
CERBERO_PACKAGE_ARGS: "-t"
|
||||||
|
@ -380,7 +379,15 @@ valgrind ges:
|
||||||
- mkdir -p ../../${CI_PROJECT_NAMESPACE}
|
- mkdir -p ../../${CI_PROJECT_NAMESPACE}
|
||||||
- ln -sf $(pwd) ../../${CI_PROJECT_NAMESPACE}/cerbero
|
- ln -sf $(pwd) ../../${CI_PROJECT_NAMESPACE}/cerbero
|
||||||
- rsync -aH ${CERBERO_HOST_DIR} .
|
- rsync -aH ${CERBERO_HOST_DIR} .
|
||||||
- test -f ${CERBERO_DEPS} && tar -C ${CERBERO_HOME} -xf ${CERBERO_DEPS}
|
- |
|
||||||
|
if test -f cerbero-deps.tar.xz ; then
|
||||||
|
echo "Extracting xz deps tarball"
|
||||||
|
export XZ_OPT="--threads=0" # pushing a command through sh variable and into tar correctly seems impossible
|
||||||
|
time tar -C ${CERBERO_HOME} --use-compress-program=xzcat -xf cerbero-deps.tar.xz
|
||||||
|
elif test -f cerbero-deps.tar.gz; then
|
||||||
|
echo "Extracting gz deps tarball"
|
||||||
|
time tar -C ${CERBERO_HOME} -xf cerbero-deps.tar.gz
|
||||||
|
fi
|
||||||
- echo "home_dir = \"$(pwd)/${CERBERO_HOME}\"" >> localconf.cbc
|
- echo "home_dir = \"$(pwd)/${CERBERO_HOME}\"" >> localconf.cbc
|
||||||
- echo "local_sources = \"$(pwd)/${CERBERO_SOURCES}\"" >> localconf.cbc
|
- echo "local_sources = \"$(pwd)/${CERBERO_SOURCES}\"" >> localconf.cbc
|
||||||
- ./cerbero-uninstalled --self-update manifest.xml
|
- ./cerbero-uninstalled --self-update manifest.xml
|
||||||
|
@ -413,7 +420,7 @@ valgrind ges:
|
||||||
paths:
|
paths:
|
||||||
- "manifest.xml"
|
- "manifest.xml"
|
||||||
- "${CERBERO_HOME}/logs"
|
- "${CERBERO_HOME}/logs"
|
||||||
- "*.tar.bz2"
|
- "*.tar.*"
|
||||||
|
|
||||||
.build windows:
|
.build windows:
|
||||||
image: $WINDOWS_IMAGE
|
image: $WINDOWS_IMAGE
|
||||||
|
@ -555,7 +562,9 @@ build msys2 :
|
||||||
- test "x${CERBERO_OVERRIDDEN_DIST_DIR}" != "x"
|
- test "x${CERBERO_OVERRIDDEN_DIST_DIR}" != "x"
|
||||||
&& mkdir -p ${CERBERO_HOME}/dist/${ARCH}
|
&& mkdir -p ${CERBERO_HOME}/dist/${ARCH}
|
||||||
&& rsync -aH ${CERBERO_OVERRIDDEN_DIST_DIR}/ ${CERBERO_HOME}/dist/${ARCH}
|
&& rsync -aH ${CERBERO_OVERRIDDEN_DIST_DIR}/ ${CERBERO_HOME}/dist/${ARCH}
|
||||||
- tar -C ${CERBERO_HOME} --exclude=var/tmp -czf $CERBERO_DEPS
|
- export CERBERO_DEPS="cerbero-deps.tar.xz"
|
||||||
|
- export XZ_OPT="--threads=0" # pushing a command through sh variable and into tar correctly seems impossible
|
||||||
|
- time tar -C ${CERBERO_HOME} --exclude=var/tmp --use-compress-program=xz -cf $CERBERO_DEPS
|
||||||
build-tools build-tools.cache
|
build-tools build-tools.cache
|
||||||
dist/${ARCH} ${ARCH}.cache
|
dist/${ARCH} ${ARCH}.cache
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -566,7 +575,7 @@ build msys2 :
|
||||||
- "manifest.xml"
|
- "manifest.xml"
|
||||||
- "${CERBERO_HOME}/logs"
|
- "${CERBERO_HOME}/logs"
|
||||||
- "${CERBERO_HOME}/cerbero-deps.log"
|
- "${CERBERO_HOME}/cerbero-deps.log"
|
||||||
- "${CERBERO_DEPS}"
|
- "cerbero-deps.tar.*"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Cerbero Linux X86_64 build
|
# Cerbero Linux X86_64 build
|
||||||
|
@ -612,7 +621,7 @@ cerbero deps cross-android universal:
|
||||||
paths:
|
paths:
|
||||||
- "manifest.xml"
|
- "manifest.xml"
|
||||||
- "${CERBERO_HOME}/logs"
|
- "${CERBERO_HOME}/logs"
|
||||||
- "*[0-9].tar.bz2"
|
- "*[0-9].tar.*"
|
||||||
|
|
||||||
cerbero cross-android universal:
|
cerbero cross-android universal:
|
||||||
extends: '.cerbero cross-android universal'
|
extends: '.cerbero cross-android universal'
|
||||||
|
|
Loading…
Reference in a new issue