From 0df50a7e5da8e4b3d995cb6ab100659cb191afe6 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 27 Mar 2024 10:19:09 +0800 Subject: [PATCH] DEV: Use the right number of cores for bundle install in tests workflow (#26389) Why this change? We run on different runners depending on the scenario. We should use the right number of parallel jobs for bundle install based on the number of CPU cores the runner has. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eff4d96cdb5..62b5c429939 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -96,7 +96,7 @@ jobs: bundle config --local path vendor/bundle bundle config --local deployment true bundle config --local without development - bundle install --jobs 4 + bundle install --jobs $(($(nproc) - 1)) bundle clean - name: Get yarn cache directory