Skip to content

Commit

Permalink
HACK: throttle the number of cores to avoid OOM on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Feb 20, 2025
1 parent a3b9457 commit a71c5b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-swift-debugging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: ./tools/bootstrap.py ../../out -no-check -release-version 90001 -patch-level 0
- run: ./tools/bootstrap.py ../../out -verbose -no-check -release-version 90001 -patch-level 0
working-directory: ./extensions/cxx_debugging/
- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions extensions/cxx_debugging/tools/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def stage2(source_dir, stage1_dir, OPTIONS):
maybe_cmake(binary_dir, cmake_args, OPTIONS.verbose)

num_cores = os.cpu_count()
# HACK: throttle the number of cores to avoid OOM on the CI
if os.getenv('CI'):
num_cores = min(num_cores, 1)

env = os.environ.copy()

if not OPTIONS.no_check:
Expand Down

0 comments on commit a71c5b7

Please sign in to comment.