diff --git a/.github/workflows/build-targets.yaml b/.github/workflows/build-targets.yaml index 767105e..43d7316 100644 --- a/.github/workflows/build-targets.yaml +++ b/.github/workflows/build-targets.yaml @@ -20,6 +20,18 @@ jobs: BUILD_TARGET: ${{ matrix.build-target }} run: | echo "Starting Build Workflow for target: $BUILD_TARGET" + + - name: Setup swap + run: | + # Remove existing swap if present + sudo swapoff -a || true + sudo rm -f /swapfile /mnt/swapfile || true + # Create new swap + sudo fallocate -l 12G /mnt/swapfile + sudo chmod 600 /mnt/swapfile + sudo mkswap /mnt/swapfile + sudo swapon /mnt/swapfile + free -h - name: Set up build environment run: |