From c4ba3a5394ce596bf16469973f9a21fc8acde14c Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Thu, 26 Oct 2023 11:12:50 +0200 Subject: [PATCH] Add 4G of swap space --- .github/workflows/publish_snapshot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml index 3354ab88a395e..c66b9781c8ce0 100644 --- a/.github/workflows/publish_snapshot.yml +++ b/.github/workflows/publish_snapshot.yml @@ -63,6 +63,14 @@ jobs: with: distribution: temurin java-version: 17 + - name: Add swap + run: | + sudo dd if=/dev/zero of=swap.img bs=1024 count=4M + sudo chmod 0600 swap.img + sudo mkswap swap.img + cat /proc/swaps + sudo swapon swap.img + cat /proc/swaps - name: Publish snapshot env: ASF_USERNAME: ${{ secrets.NEXUS_USER }}