From e161a851334b7c86882ae162d058940d0195ccad Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 24 Jan 2025 10:09:25 +1100 Subject: [PATCH] Reduce parallel jobs and add swap in case we are hitting github action limitations --- .github/workflows/build-image-v5.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build-image-v5.yaml b/.github/workflows/build-image-v5.yaml index 25b7aac..b207760 100644 --- a/.github/workflows/build-image-v5.yaml +++ b/.github/workflows/build-image-v5.yaml @@ -21,6 +21,19 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Add swap space + run: | + sudo fallocate -l 4G /swapfile + sudo chmod 600 /swapfile + sudo mkswap /swapfile + sudo swapon /swapfile + free -h + + - name: Set MAKEFLAGS for parallel make jobs + run: | + export MAKEFLAGS="-j2" + echo "MAKEFLAGS set to: $MAKEFLAGS" + - name: Set up QEMU uses: docker/setup-qemu-action@v1 with: