Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit compiling jobs to 10 in ci/ubuntu2004. #2882

Merged
merged 4 commits into from
Sep 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=t::$(nproc)"
;;
ubuntu2004)
# build with Debug type
Expand All @@ -95,6 +96,7 @@ jobs:
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=t::10"
;;
esac
;;
Expand All @@ -107,13 +109,14 @@ jobs:
-DENABLE_ASAN=on \
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::6"
echo "::set-output name=j::6"
echo "::set-output name=t::10"
;;
esac
- name: Make
run: |
ccache -z
cmake --build build/ -j $(($(nproc)/2+1))
cmake --build build/ -j ${{ steps.cmake.outputs.t }}
ccache -s
- name: CTest
env:
Expand Down