From c602bc59df9338431202c02cb53712567556f15c Mon Sep 17 00:00:00 2001 From: nebula-bots <88429921+nebula-bots@users.noreply.github.com> Date: Mon, 21 Nov 2022 16:26:41 +0800 Subject: [PATCH] reduce link threads to avoid OOM (#1695) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> Co-authored-by: hs.zhang <22708345+cangfengzhs@users.noreply.github.com> Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> --- .github/workflows/pull_request.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b296cd7fc9f..d70b572c52d 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -135,9 +135,30 @@ jobs: esac - name: Make run: | - ccache -z - ninja -j $(nproc) - ccache -s + case ${{ matrix.compiler }} in + gcc-*) + case ${{ matrix.os }} in + centos7) + # build with Release type + ccache -z + ninja -j $(nproc) + ccache -s + ;; + ubuntu2004) + # build with Debug type + ccache -z + ninja -j $(($(nproc)/2+1)) + ccache -s + ;; + esac + ;; + clang-*) + # build with Sanitizer + ccache -z + ninja -j $(nproc) + ccache -s + ;; + esac working-directory: build/ - name: CTest env: