Skip to content

Commit

Permalink
Merge pull request #3416 from autonomys/optimize-snapshot-ci-linux
Browse files Browse the repository at this point in the history
Fix self-hosted runner linux builds OOM
  • Loading branch information
DaMandal0rian authored Mar 5, 2025
2 parents 2533c36 + 39890b2 commit 89c85ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/runs-on.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
runners:
self-hosted-ubuntu-22.04-x86-64:
cpu: [16, 32, 64]
ram: [64, 128]
ram: [32, 64, 128]
disk: default
family: ["c7a", "c7i", "m7a", "m7i"]
spot: capacity-optimized
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ jobs:
max-parallelism = 1
if: github.repository_owner != 'autonomys'

# This is to manage the concurrency of the builds and prevent self-hosted runners from running out of memory
- name: Set up Docker Buildx (self-hosted runner)
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
with:
# Limit concurrency so it can reduce the likelihood of running out of memory
buildkitd-config-inline: |
[worker.oci]
max-parallelism = 3
if: github.repository_owner == 'autonomys'

- name: Log into registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
Expand Down

0 comments on commit 89c85ce

Please sign in to comment.