Skip to content

Commit c613e3e

Browse files
committed
skip zram setup if already configured
1 parent 6ea99ed commit c613e3e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/runner_setup/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ runs:
66
- name: Setup zram
77
shell: bash
88
run: |
9+
# Skip if zram swap is already active
10+
if grep -q '/dev/zram0' /proc/swaps; then
11+
echo "/dev/zram0 swap already configured, skipping zram setup."
12+
exit 0
13+
fi
14+
915
sudo modprobe zram
1016
MemTotal=$(grep -Po "(?<=MemTotal:)\s+\d+" /proc/meminfo) # KiB
1117
Percent=200

0 commit comments

Comments
 (0)