Synching Github runners cache with upstream (#2949)
* Improving Github actions for creating images * Update single image building as well
This commit is contained in:
parent
9d1ed95d9a
commit
ca882616da
4
.github/workflows/build-beta-images.yml
vendored
4
.github/workflows/build-beta-images.yml
vendored
@ -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)))
|
||||
|
||||
|
||||
4
.github/workflows/build-single.yml
vendored
4
.github/workflows/build-single.yml
vendored
@ -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/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user