Synching Github runners cache with upstream (#2949)

* Improving Github actions for creating images
* Update single image building as well
This commit is contained in:
Igor Pečovnik 2021-07-01 18:28:42 +02:00 committed by GitHub
parent 9d1ed95d9a
commit ca882616da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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)))

View File

@ -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/