Skip to content
Snippets Groups Projects
Commit e3bc23e0 authored by Frieder Schrempf's avatar Frieder Schrempf
Browse files

CI: Strip packages and licences from build results to save space and bandwidth

We don't need to transfer these files if we don't use them. We only
need to ship them for release builds.
parent f6c0c3a0
No related branches found
No related tags found
1 merge request!20Draft: CI Rework for automated testing via labgrid
Pipeline #17600 passed
......@@ -66,6 +66,14 @@ workflow:
- kas shell $KAS_CONFIG:kas/dev/shared-cache.yml -c "bitbake virtual/bootloader -e" > build/env/bootloader.$PLATFORM.$YOCTO_SERIES.env
- kas shell $KAS_CONFIG:kas/dev/shared-cache.yml -c "bitbake virtual/kernel -e" > build/env/kernel.$PLATFORM.$YOCTO_SERIES.env
#
# This script removes unused files to reduce the size of the artifacts.
# TODO: Keep files in release builds
#
strip:
- rm -rf build/tmp/deploy/ipk
- rm -rf build/tmp/deploy/licenses
#
# This is a template for the build job that runs the build for the requested
# targets. The resulting artifacts expire after some time.
......@@ -86,6 +94,7 @@ workflow:
- !reference [.scripts, gitversion]
- !reference [.scripts, cache]
- !reference [.scripts, kas]
- !reference [.scripts, strip]
artifacts:
name: "$CI_PROJECT_NAME $CI_COMMIT_REF_NAME $PLATFORM $YOCTO_SERIES"
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment