Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 2a6a967

Browse files
committed
CI: lower compression ratio in PR build, to save build time
Most of build results from PR are never used, so we can relax compression levels and reduce build time, for example zip -1 completes typically 3x faster than zip -9. Note that we do this in common part so post-build test phase also gets lower compression level. Signed-off-by: Olev Kartau <olev.kartau@intel.com>
1 parent 9a7d27b commit 2a6a967

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docker/build-common-util.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ EOF
3636
# save sstate to workspace
3737
echo "SSTATE_DIR = \"${BUILD_CACHE_DIR}/sstate\"" >> conf/auto.conf
3838
fi
39+
# lower compression levels in a PR build, to save build time
40+
if [ -z ${CI_ARCHIVER_MODE+x} ]; then
41+
echo "ZIP_COMPRESSION_LEVEL ?= \"-1\"" >> conf/auto.conf
42+
echo "XZ_COMPRESSION_LEVEL ?= \"-0\"" >> conf/auto.conf
43+
fi
3944
}
4045

4146
auto_conf_archiver() {

0 commit comments

Comments
 (0)