Skip to content

Commit 39890b2

Browse files
committed
Fix self-hosted runner linux builds OOM
1 parent 2533c36 commit 39890b2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/runs-on.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
runners:
22
self-hosted-ubuntu-22.04-x86-64:
33
cpu: [16, 32, 64]
4-
ram: [64, 128]
4+
ram: [32, 64, 128]
55
disk: default
66
family: ["c7a", "c7i", "m7a", "m7i"]
77
spot: capacity-optimized

.github/workflows/snapshot-build.yml

+10
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ jobs:
5959
max-parallelism = 1
6060
if: github.repository_owner != 'autonomys'
6161

62+
# This is to manage the concurrency of the builds and prevent self-hosted runners from running out of memory
63+
- name: Set up Docker Buildx (self-hosted runner)
64+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
65+
with:
66+
# Limit concurrency so it can reduce the likelihood of running out of memory
67+
buildkitd-config-inline: |
68+
[worker.oci]
69+
max-parallelism = 3
70+
if: github.repository_owner == 'autonomys'
71+
6272
- name: Log into registry
6373
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
6474
with:

0 commit comments

Comments
 (0)