Cap bundle install parallel jobs at 4.

This commit is contained in:
Alan Guo Xiang Tan 2024-09-13 16:55:46 +08:00
parent 953e766c92
commit 7deddc81ee
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
5 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ jobs:
gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
bundle config --local deployment true
bundle config --local without development
bundle install --jobs $(($(nproc) - 1))
bundle install --jobs $(($(nproc) > 4 ? 4 : $(nproc) - 1))
bundle clean
- name: Setup licensed

View File

@ -40,7 +40,7 @@ jobs:
gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
bundle config --local deployment true
bundle config --local without development
bundle install --jobs $(($(nproc) - 1))
bundle install --jobs $(($(nproc) > 4 ? 4 : $(nproc) - 1))
bundle clean
- name: pnpm install

View File

@ -76,7 +76,7 @@ jobs:
bundle config --local deployment true
bundle config --local without development
bundle config --local with migrations
bundle install --jobs $(($(nproc) - 1))
bundle install --jobs $(($(nproc) > 4 ? 4 : $(nproc) - 1))
bundle clean
- name: pnpm install

View File

@ -41,7 +41,7 @@ jobs:
gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
bundle config --local deployment true
bundle config --local without development
bundle install --jobs $(($(nproc) - 1))
bundle install --jobs $(($(nproc) > 4 ? 4 : $(nproc) - 1))
bundle clean
- name: Create output dir

View File

@ -115,7 +115,7 @@ jobs:
gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
bundle config --local deployment true
bundle config --local without development
bundle install --jobs $(($(nproc) - 1))
bundle install --jobs $(($(nproc) > 4 ? 4 : $(nproc) - 1))
bundle clean
- name: pnpm install