Skip to content

Commit

Permalink
Compile test and daemon binary separately to avoid OOM in runner
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Oct 13, 2021
1 parent afbf9d2 commit 4a94c4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ jobs:
-DENABLE_COVERAGE=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=t::10"
- name: Make
run: |
ccache -z
cmake --build build/ -j ${{ steps.cmake.outputs.t }}
cmake --build build/ -j $(nproc) --target nebula-metad
cmake --build build/ -j $(nproc) --target nebula-storaged
cmake --build build/ -j $(nproc) --target nebula-graphd
cmake --build build/ -j $(($(nproc)/2+1))
ccache -s
- name: CTest
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ 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 @@ -97,7 +96,6 @@ jobs:
-DENABLE_COVERAGE=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=t::10"
;;
esac
;;
Expand All @@ -111,13 +109,15 @@ jobs:
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::6"
echo "::set-output name=t::10"
;;
esac
- name: Make
run: |
ccache -z
cmake --build build/ -j ${{ steps.cmake.outputs.t }}
cmake --build build/ -j $(nproc) --target nebula-metad
cmake --build build/ -j $(nproc) --target nebula-storaged
cmake --build build/ -j $(nproc) --target nebula-graphd
cmake --build build/ -j $(($(nproc)/2+1))
ccache -s
- name: CTest
env:
Expand Down

0 comments on commit 4a94c4b

Please sign in to comment.