Skip to content

Commit ed27f89

Browse files
committed
Increase swap to 12GiB for build workflow
1 parent 7fb9102 commit ed27f89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-targets.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ jobs:
2020
BUILD_TARGET: ${{ matrix.build-target }}
2121
run: |
2222
echo "Starting Build Workflow for target: $BUILD_TARGET"
23+
24+
- name: Setup swap
25+
run: |
26+
# Remove existing swap if present
27+
sudo swapoff -a || true
28+
sudo rm -f /swapfile /mnt/swapfile || true
29+
# Create new swap
30+
sudo fallocate -l 12G /mnt/swapfile
31+
sudo chmod 600 /mnt/swapfile
32+
sudo mkswap /mnt/swapfile
33+
sudo swapon /mnt/swapfile
34+
free -h
2335
2436
- name: Set up build environment
2537
run: |

0 commit comments

Comments
 (0)