From ca882616da7eb0b694020dd5a922e49a51fb7d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Thu, 1 Jul 2021 18:28:42 +0200 Subject: [PATCH] Synching Github runners cache with upstream (#2949) * Improving Github actions for creating images * Update single image building as well --- .github/workflows/build-beta-images.yml | 4 ++++ .github/workflows/build-single.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build-beta-images.yml b/.github/workflows/build-beta-images.yml index 3a726a9f62..61d3333dd2 100644 --- a/.github/workflows/build-beta-images.yml +++ b/.github/workflows/build-beta-images.yml @@ -83,6 +83,10 @@ jobs: [[ ! -f .ignore_changes ]] && sudo touch .ignore_changes ./compile.sh KERNEL_ONLY="yes" BOARD="bananapi" BRANCH="current" KERNEL_CONFIGURE="no" USE_TORRENT="yes" REPOSITORY_INSTALL="kernel" 'prepare_host' + # sync rootfs + mkdir -p cache/rootfs/ + sudo rsync --size-only -avr rsync://rsync.armbian.com/dl/_rootfs/. cache/rootfs/ + # calculate how many images we can build in parallel PARALLEL_BUILDS=$(awk '{printf("%d",$1/5000)}' <<<$(($(LC_ALL=C free -w 2>/dev/null | grep "^Mem" | awk '{print $2}' || LC_ALL=C free | grep "^Mem"| awk '{print $2}')/1024))) diff --git a/.github/workflows/build-single.yml b/.github/workflows/build-single.yml index ea6b6db8a2..36b6456191 100644 --- a/.github/workflows/build-single.yml +++ b/.github/workflows/build-single.yml @@ -90,6 +90,10 @@ jobs: ./compile.sh KERNEL_ONLY="yes" BOARD="bananapi" BRANCH="current" KERNEL_CONFIGURE="no" USE_TORRENT="yes" REPOSITORY_INSTALL="kernel" 'prepare_host' PARALLEL_BUILDS=$(awk '{printf("%d",$1/8000)}' <<<$(($(LC_ALL=C free -w 2>/dev/null | grep "^Mem" | awk '{print $2}' || LC_ALL=C free | grep "^Mem"| awk '{print $2}')/1024))) + # sync rootfs + mkdir -p cache/rootfs/ + sudo rsync --size-only -avr rsync://rsync.armbian.com/dl/_rootfs/. cache/rootfs/ + # use prepared configs sudo cp ../scripts/configs/* userpatches/