Skip to content

Commit 006507e

Browse files
reduce link threads to avoid OOM (#4905)
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
1 parent 90a3107 commit 006507e

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/pull_request.yml

+24-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,30 @@ jobs:
128128
esac
129129
- name: Make
130130
run: |
131-
ccache -z
132-
ninja -j $(nproc)
133-
ccache -s
131+
case ${{ matrix.compiler }} in
132+
gcc-*)
133+
case ${{ matrix.os }} in
134+
centos7)
135+
# build with Release type
136+
ccache -z
137+
ninja -j $(nproc)
138+
ccache -s
139+
;;
140+
ubuntu2004)
141+
# build with Debug type
142+
ccache -z
143+
ninja -j $(($(nproc)/2+1))
144+
ccache -s
145+
;;
146+
esac
147+
;;
148+
clang-*)
149+
# build with Sanitizer
150+
ccache -z
151+
ninja -j $(nproc)
152+
ccache -s
153+
;;
154+
esac
134155
working-directory: build/
135156
- name: CTest
136157
env:

0 commit comments

Comments
 (0)