From 0ed7e8ad17bc662eeb1c820d76de41ff7125b05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Wed, 19 Oct 2022 21:21:34 +0200 Subject: [PATCH] [docker][fix] Create swap file for ARM builds --- .github/workflows/docker-build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index c80f70b70f..830eb07395 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -120,6 +120,17 @@ jobs: id: sha run: echo "::set-output name=short::${GITHUB_SHA::7}" + - name: Create swap for ARM builds + run: | + if [ "${{ github.ref_type }}" = tag ]; then + echo "Creating swap file for ARM builds" + time sudo dd if=/dev/zero of=/swapfile1 bs=10M count=1000 + sudo chmod 600 /swapfile1 + sudo mkswap /swapfile1 + sudo swapon /swapfile1 + free -h + fi + - name: Set build platforms id: platform run: |