mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 19:46:55 +08:00
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.
This commit is contained in:
parent
5875b25e68
commit
0df50a7e5d
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user