Skip to content

Commit

Permalink
Limit compiling jobs to 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
CPWstatic committed Sep 16, 2021
1 parent 8579b02 commit 1e37862
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=j::10 name=t::$(nproc)"
;;
ubuntu2004)
# build with Debug type
Expand All @@ -94,7 +94,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=j::10 name=t::10"
;;
esac
;;
Expand All @@ -107,13 +107,13 @@ jobs:
-DENABLE_ASAN=on \
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::6"
echo "::set-output name=j::6 name=t::$(nproc)"
;;
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

0 comments on commit 1e37862

Please sign in to comment.