ci: wire up ccache/apt-proxy

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
main
Robert Nelson 1 week ago
parent 0fefceeb31
commit 6395740487

@ -2,7 +2,11 @@ image: robertcnelson/beagle-devscripts-kernel-debian-12-amd64:latest
# https://openbeagle.org/beagleboard/ci-docker-images # https://openbeagle.org/beagleboard/ci-docker-images
before_script: before_script:
- apt-get update -q - export PATH=/usr/lib/ccache:$PATH
- echo "Acquire::http::Proxy \"http://192.168.1.10:3142\";" > /etc/apt/apt.conf.d/00aptproxy
- apt-get update
- apt-get upgrade -yq
- apt-get dist-upgrade -yq
- apt-get install -yq bc bison bmap-tools cpio debhelper dosfstools flex genimage kmod libelf-dev libssl-dev libyaml-dev lz4 mtools - apt-get install -yq bc bison bmap-tools cpio debhelper dosfstools flex genimage kmod libelf-dev libssl-dev libyaml-dev lz4 mtools
variables: variables:
@ -10,7 +14,7 @@ variables:
CACHE_COMPRESSION_LEVEL: "fast" CACHE_COMPRESSION_LEVEL: "fast"
cache: cache:
key: "$CI_PROJECT_NAME" key: "$CI_PROJECT_NAME-main"
paths: paths:
- mirror/x86_64-gcc-*-linux.tar.xz - mirror/x86_64-gcc-*-linux.tar.xz
- ccache.tar.lz4 - ccache.tar.lz4
@ -25,11 +29,12 @@ build:
- ./02_build_hss.sh - ./02_build_hss.sh
- ./03_build_u-boot.sh - ./03_build_u-boot.sh
- mkdir -p /root/.cache/ccache/ || true - mkdir -p /root/.cache/ccache/ || true
- time tar --use-compress-program=lz4 -xf ccache.tar.lz4 -C / || true - tar --use-compress-program=lz4 -xf ccache.tar.lz4 -C / || true
- ccache -s - ccache -M 1G
- ccache -z
- ./04_build_linux.sh - ./04_build_linux.sh
- ccache -s - ccache -sv
- time tar --use-compress-program=lz4 -cf ccache.tar.lz4 /root/.cache/ccache/ - tar --use-compress-program=lz4 -cf ccache.tar.lz4 /root/.cache/ccache/
- ./05_generate_payload.bin.sh - ./05_generate_payload.bin.sh
- ./06_generate_ubuntu_console_root.sh - ./06_generate_ubuntu_console_root.sh
- ./07_create_sdcard_img.sh - ./07_create_sdcard_img.sh
@ -39,7 +44,7 @@ build:
- cp -v deploy/images/sdcard.bmap ./deploy/ - cp -v deploy/images/sdcard.bmap ./deploy/
artifacts: artifacts:
expire_in: 28 days expire_in: 28 days
name: "$CI_PROJECT_NAME-$CI_JOB_ID" name: "$CI_PROJECT_NAME-main-$CI_JOB_ID"
paths: paths:
- "deploy/sdcard.img.xz" - "deploy/sdcard.img.xz"
- "deploy/sdcard.bmap" - "deploy/sdcard.bmap"

Loading…
Cancel
Save