Skip to content

Commit 061a60e

Browse files
committed
ci: linux: setup swap space
1 parent 45796f9 commit 061a60e

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ jobs:
1717
runs-on: ${{ (startsWith(matrix.linux_image, 'arm') && 'ubuntu-24.04-arm') || 'ubuntu-latest' }}
1818
container:
1919
image: ${{ matrix.linux_image }}
20-
options: --shm-size=2g
20+
# need priveleged mode to be able to setup swap space, otherwise we get "fallocate failed: Operation not permitted" error
21+
options: --privileged
2122
name: linux - ${{ matrix.linux_image }} | ${{ matrix.config }}
2223
steps:
24+
# when building the monorepo we hit the memory limit, so need to setup a swap space
25+
- name: setup swap Space
26+
run: |
27+
sudo fallocate -l 32G /swapfile
28+
sudo chmod 600 /swapfile
29+
sudo mkswap /swapfile
30+
sudo swapon /swapfile
31+
free -h
2332
- name: install build tools
2433
run: |
2534
apt --quiet update --yes

repos/ruisapp

0 commit comments

Comments
 (0)