Skip to content

Commit a71c5b7

Browse files
HACK: throttle the number of cores to avoid OOM on the CI
1 parent a3b9457 commit a71c5b7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build-swift-debugging.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/setup-node@v4
3535
with:
3636
node-version: '22'
37-
- run: ./tools/bootstrap.py ../../out -no-check -release-version 90001 -patch-level 0
37+
- run: ./tools/bootstrap.py ../../out -verbose -no-check -release-version 90001 -patch-level 0
3838
working-directory: ./extensions/cxx_debugging/
3939
- uses: actions/upload-artifact@v4
4040
with:

extensions/cxx_debugging/tools/bootstrap.py

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ def stage2(source_dir, stage1_dir, OPTIONS):
190190
maybe_cmake(binary_dir, cmake_args, OPTIONS.verbose)
191191

192192
num_cores = os.cpu_count()
193+
# HACK: throttle the number of cores to avoid OOM on the CI
194+
if os.getenv('CI'):
195+
num_cores = min(num_cores, 1)
196+
193197
env = os.environ.copy()
194198

195199
if not OPTIONS.no_check:

0 commit comments

Comments
 (0)