diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f477bb6d05b..3151224ffbf 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 93edc0147b0..f6f06c6ccf1 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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 @@ -97,7 +96,6 @@ jobs: -DENABLE_COVERAGE=on \ -B build echo "::set-output name=j::10" - echo "::set-output name=t::10" ;; esac ;; @@ -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: