Skip to content

Commit 7a2fbee

Browse files
committed
CI: Shorten the statement with PARALLEL variable
1 parent 21d7dce commit 7a2fbee

File tree

1 file changed

+101
-91
lines changed

1 file changed

+101
-91
lines changed

.github/workflows/main.yml

Lines changed: 101 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -66,180 +66,183 @@ jobs:
6666
make ENABLE_SYSTEM=1 artifact
6767
make ENABLE_ARCH_TEST=1 artifact
6868
if: ${{ always() }}
69+
- name: Set parallel jobs variable
70+
run: |
71+
echo "PARALLEL=-j$(nproc)" >> $GITHUB_ENV
6972
- name: default build with -g
7073
env:
7174
CC: ${{ steps.install_cc.outputs.cc }}
7275
run: |
7376
make distclean
74-
make OPT_LEVEL=-g -j$(nproc)
77+
make OPT_LEVEL=-g $PARALLEL
7578
if: ${{ always() }}
7679
- name: default build with -Og
7780
env:
7881
CC: ${{ steps.install_cc.outputs.cc }}
7982
run: |
8083
make distclean
81-
make OPT_LEVEL=-Og -j$(nproc)
84+
make OPT_LEVEL=-Og $PARALLEL
8285
if: ${{ always() }}
8386
- name: default build with -O0
8487
env:
8588
CC: ${{ steps.install_cc.outputs.cc }}
8689
run: |
8790
make distclean
88-
make OPT_LEVEL=-O0 -j$(nproc)
91+
make OPT_LEVEL=-O0 $PARALLEL
8992
if: ${{ always() }}
9093
- name: default build with -O1
9194
env:
9295
CC: ${{ steps.install_cc.outputs.cc }}
9396
run: |
9497
make distclean
95-
make OPT_LEVEL=-O1 -j$(nproc)
98+
make OPT_LEVEL=-O1 $PARALLEL
9699
if: ${{ always() }}
97100
- name: default build with -O2
98101
env:
99102
CC: ${{ steps.install_cc.outputs.cc }}
100103
run: |
101104
make distclean
102-
make OPT_LEVEL=-O2 -j$(nproc)
105+
make OPT_LEVEL=-O2 $PARALLEL
103106
if: ${{ always() }}
104107
- name: default build with -O3
105108
env:
106109
CC: ${{ steps.install_cc.outputs.cc }}
107110
run: |
108111
make distclean
109-
make OPT_LEVEL=-O3 -j$(nproc)
112+
make OPT_LEVEL=-O3 $PARALLEL
110113
if: ${{ always() }}
111114
- name: default build with -Ofast
112115
env:
113116
CC: ${{ steps.install_cc.outputs.cc }}
114117
run: |
115118
make distclean
116-
make OPT_LEVEL=-Ofast -j$(nproc)
119+
make OPT_LEVEL=-Ofast $PARALLEL
117120
if: ${{ always() }}
118121
- name: default build for system emulation with -g
119122
env:
120123
CC: ${{ steps.install_cc.outputs.cc }}
121124
run: |
122125
make distclean
123-
make OPT_LEVEL=-g ENABLE_SYSTEM=1 -j$(nproc)
126+
make OPT_LEVEL=-g ENABLE_SYSTEM=1 $PARALLEL
124127
if: ${{ always() }}
125128
- name: default build for system emulation with -Og
126129
env:
127130
CC: ${{ steps.install_cc.outputs.cc }}
128131
run: |
129132
make distclean
130-
make OPT_LEVEL=-Og ENABLE_SYSTEM=1 -j$(nproc)
133+
make OPT_LEVEL=-Og ENABLE_SYSTEM=1 $PARALLEL
131134
if: ${{ always() }}
132135
- name: default build for system emulation with -O0
133136
env:
134137
CC: ${{ steps.install_cc.outputs.cc }}
135138
run: |
136139
make distclean
137-
make OPT_LEVEL=-O0 ENABLE_SYSTEM=1 -j$(nproc)
140+
make OPT_LEVEL=-O0 ENABLE_SYSTEM=1 $PARALLEL
138141
if: ${{ always() }}
139142
- name: default build for system emulation with -O1
140143
env:
141144
CC: ${{ steps.install_cc.outputs.cc }}
142145
run: |
143146
make distclean
144-
make OPT_LEVEL=-O1 ENABLE_SYSTEM=1 -j$(nproc)
147+
make OPT_LEVEL=-O1 ENABLE_SYSTEM=1 $PARALLEL
145148
if: ${{ always() }}
146149
- name: default build for system emulation with -O2
147150
env:
148151
CC: ${{ steps.install_cc.outputs.cc }}
149152
run: |
150153
make distclean
151-
make OPT_LEVEL=-O2 ENABLE_SYSTEM=1 -j$(nproc)
154+
make OPT_LEVEL=-O2 ENABLE_SYSTEM=1 $PARALLEL
152155
if: ${{ always() }}
153156
- name: default build for system emulation with -O3
154157
env:
155158
CC: ${{ steps.install_cc.outputs.cc }}
156159
run: |
157160
make distclean
158-
make OPT_LEVEL=-O3 ENABLE_SYSTEM=1 -j$(nproc)
161+
make OPT_LEVEL=-O3 ENABLE_SYSTEM=1 $PARALLEL
159162
if: ${{ always() }}
160163
- name: default build for system emulation with -Ofast
161164
env:
162165
CC: ${{ steps.install_cc.outputs.cc }}
163166
run: |
164167
make distclean
165-
make OPT_LEVEL=-Ofast ENABLE_SYSTEM=1 -j$(nproc)
168+
make OPT_LEVEL=-Ofast ENABLE_SYSTEM=1 $PARALLEL
166169
if: ${{ always() }}
167170
- name: check + tests
168171
env:
169172
CC: ${{ steps.install_cc.outputs.cc }}
170173
run: |
171174
make distclean
172-
make check -j$(nproc)
173-
make tests -j$(nproc)
174-
make misalign -j$(nproc)
175-
make tool -j$(nproc)
175+
make check $PARALLEL
176+
make tests $PARALLEL
177+
make misalign $PARALLEL
178+
make tool $PARALLEL
176179
if: ${{ always() }}
177180
- name: diverse configurations
178181
env:
179182
CC: ${{ steps.install_cc.outputs.cc }}
180183
run: |
181-
make distclean && make ENABLE_EXT_M=0 check -j$(nproc)
182-
make distclean && make ENABLE_EXT_A=0 check -j$(nproc)
183-
make distclean && make ENABLE_EXT_F=0 check -j$(nproc)
184-
make distclean && make ENABLE_EXT_C=0 check -j$(nproc)
185-
make distclean && make ENABLE_SDL=0 check -j$(nproc)
186-
make distclean && make ENABLE_Zicsr=0 check -j$(nproc)
187-
make distclean && make ENABLE_MOP_FUSION=0 check -j$(nproc)
188-
make distclean && make ENABLE_BLOCK_CHAINING=0 check -j$(nproc)
189-
make distclean && make ENABLE_Zba=0 check -j$(nproc)
190-
make distclean && make ENABLE_Zbb=0 check -j$(nproc)
191-
make distclean && make ENABLE_Zbc=0 check -j$(nproc)
192-
make distclean && make ENABLE_Zbs=0 check -j$(nproc)
193-
make distclean && make ENABLE_Zifencei=0 check -j$(nproc)
184+
make distclean && make ENABLE_EXT_M=0 check $PARALLEL
185+
make distclean && make ENABLE_EXT_A=0 check $PARALLEL
186+
make distclean && make ENABLE_EXT_F=0 check $PARALLEL
187+
make distclean && make ENABLE_EXT_C=0 check $PARALLEL
188+
make distclean && make ENABLE_SDL=0 check $PARALLEL
189+
make distclean && make ENABLE_Zicsr=0 check $PARALLEL
190+
make distclean && make ENABLE_MOP_FUSION=0 check $PARALLEL
191+
make distclean && make ENABLE_BLOCK_CHAINING=0 check $PARALLEL
192+
make distclean && make ENABLE_Zba=0 check $PARALLEL
193+
make distclean && make ENABLE_Zbb=0 check $PARALLEL
194+
make distclean && make ENABLE_Zbc=0 check $PARALLEL
195+
make distclean && make ENABLE_Zbs=0 check $PARALLEL
196+
make distclean && make ENABLE_Zifencei=0 check $PARALLEL
194197
if: ${{ always() }}
195198
- name: misalignment test in block emulation
196199
env:
197200
CC: ${{ steps.install_cc.outputs.cc }}
198201
run: |
199202
make -C tests/system/alignment/
200-
make distclean && make ENABLE_ELF_LOADER=1 ENABLE_EXT_C=0 ENABLE_SYSTEM=1 misalign-in-blk-emu -j$(nproc)
203+
make distclean && make ENABLE_ELF_LOADER=1 ENABLE_EXT_C=0 ENABLE_SYSTEM=1 misalign-in-blk-emu $PARALLEL
201204
if: ${{ always() }}
202205
- name: MMU test
203206
env:
204207
CC: ${{ steps.install_cc.outputs.cc }}
205208
run: |
206209
make -C tests/system/mmu/
207-
make distclean && make ENABLE_ELF_LOADER=1 ENABLE_SYSTEM=1 mmu-test -j$(nproc)
210+
make distclean && make ENABLE_ELF_LOADER=1 ENABLE_SYSTEM=1 mmu-test $PARALLEL
208211
if: ${{ always() }}
209212
- name: gdbstub test
210213
env:
211214
CC: ${{ steps.install_cc.outputs.cc }}
212215
run: |
213-
make distclean && make ENABLE_GDBSTUB=1 gdbstub-test -j$(nproc)
216+
make distclean && make ENABLE_GDBSTUB=1 gdbstub-test $PARALLEL
214217
if: ${{ always() }}
215218
- name: JIT test
216219
env:
217220
CC: ${{ steps.install_cc.outputs.cc }}
218221
run: |
219-
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check -j$(nproc)
220-
make ENABLE_JIT=1 clean && make ENABLE_EXT_A=0 ENABLE_JIT=1 check -j$(nproc)
221-
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check -j$(nproc)
222-
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check -j$(nproc)
223-
make ENABLE_JIT=1 clean && make ENABLE_EXT_M=0 ENABLE_JIT=1 check -j$(nproc)
224-
make ENABLE_JIT=1 clean && make ENABLE_Zba=0 ENABLE_JIT=1 check -j$(nproc)
225-
make ENABLE_JIT=1 clean && make ENABLE_Zbb=0 ENABLE_JIT=1 check -j$(nproc)
226-
make ENABLE_JIT=1 clean && make ENABLE_Zbc=0 ENABLE_JIT=1 check -j$(nproc)
227-
make ENABLE_JIT=1 clean && make ENABLE_Zbs=0 ENABLE_JIT=1 check -j$(nproc)
228-
make ENABLE_JIT=1 clean && make ENABLE_Zicsr=0 ENABLE_JIT=1 check -j$(nproc)
229-
make ENABLE_JIT=1 clean && make ENABLE_Zifencei=0 ENABLE_JIT=1 check -j$(nproc)
230-
make ENABLE_JIT=1 clean && make ENABLE_MOP_FUSION=0 ENABLE_JIT=1 check -j$(nproc)
231-
make ENABLE_JIT=1 clean && make ENABLE_BLOCK_CHAINING=0 ENABLE_JIT=1 check -j$(nproc)
222+
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check $PARALLEL
223+
make ENABLE_JIT=1 clean && make ENABLE_EXT_A=0 ENABLE_JIT=1 check $PARALLEL
224+
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check $PARALLEL
225+
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check $PARALLEL
226+
make ENABLE_JIT=1 clean && make ENABLE_EXT_M=0 ENABLE_JIT=1 check $PARALLEL
227+
make ENABLE_JIT=1 clean && make ENABLE_Zba=0 ENABLE_JIT=1 check $PARALLEL
228+
make ENABLE_JIT=1 clean && make ENABLE_Zbb=0 ENABLE_JIT=1 check $PARALLEL
229+
make ENABLE_JIT=1 clean && make ENABLE_Zbc=0 ENABLE_JIT=1 check $PARALLEL
230+
make ENABLE_JIT=1 clean && make ENABLE_Zbs=0 ENABLE_JIT=1 check $PARALLEL
231+
make ENABLE_JIT=1 clean && make ENABLE_Zicsr=0 ENABLE_JIT=1 check $PARALLEL
232+
make ENABLE_JIT=1 clean && make ENABLE_Zifencei=0 ENABLE_JIT=1 check $PARALLEL
233+
make ENABLE_JIT=1 clean && make ENABLE_MOP_FUSION=0 ENABLE_JIT=1 check $PARALLEL
234+
make ENABLE_JIT=1 clean && make ENABLE_BLOCK_CHAINING=0 ENABLE_JIT=1 check $PARALLEL
232235
if: ${{ always() }}
233236
- name: undefined behavior test
234237
run: |
235-
make distclean && make ENABLE_UBSAN=1 check -j$(nproc)
236-
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 ENABLE_UBSAN=1 check -j$(nproc)
238+
make distclean && make ENABLE_UBSAN=1 check $PARALLEL
239+
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 ENABLE_UBSAN=1 check $PARALLEL
237240
if: ${{ always() }}
238241
- name: boot Linux kernel test
239242
env:
240243
CC: ${{ steps.install_cc.outputs.cc }}
241244
run: |
242-
make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 -j$(nproc) && make ENABLE_SYSTEM=1 artifact -j$(nproc)
245+
make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 $PARALLEL && make ENABLE_SYSTEM=1 artifact $PARALLEL
243246
.ci/boot-linux.sh
244247
make ENABLE_SYSTEM=1 clean
245248
if: ${{ always() }}
@@ -257,6 +260,9 @@ jobs:
257260
steps:
258261
- name: checkout code
259262
uses: actions/checkout@v4
263+
- name: Set parallel jobs variable
264+
run: |
265+
echo "PARALLEL=-j$(nproc)" >> $GITHUB_ENV
260266
- name: build artifact
261267
# The GitHub Action for non-x86 CPU
262268
uses: allinurl/run-on-arch-action@master
@@ -280,12 +286,12 @@ jobs:
280286
# Append custom commands here
281287
run: |
282288
make artifact
283-
make -j$(nproc)
284-
make check -j$(nproc)
285-
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check -j$(nproc)
286-
make ENABLE_JIT=1 clean && make ENABLE_EXT_A=0 ENABLE_JIT=1 check -j$(nproc)
287-
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check -j$(nproc)
288-
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check -j$(nproc)
289+
make $PARALLEL
290+
make check $PARALLEL
291+
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check $PARALLEL
292+
make ENABLE_JIT=1 clean && make ENABLE_EXT_A=0 ENABLE_JIT=1 check $PARALLEL
293+
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check $PARALLEL
294+
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check $PARALLEL
289295
290296
macOS-arm64:
291297
needs: [detect-code-related-file-changes]
@@ -307,6 +313,10 @@ jobs:
307313
uses: rlalik/setup-cpp-compiler@master
308314
with:
309315
compiler: ${{ matrix.compiler }}
316+
- name: Set parallel jobs variable
317+
run: |
318+
echo "PARALLEL=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
319+
if: ${{ always() }}
310320
- name: Symlink gcc-14 due to the default /usr/local/bin/gcc links to system's clang
311321
run: |
312322
ln -s /opt/homebrew/opt/gcc/bin/gcc-14 /usr/local/bin/gcc-14
@@ -323,66 +333,66 @@ jobs:
323333
CC: ${{ steps.install_cc.outputs.cc }}
324334
run: |
325335
make distclean
326-
make check -j$(sysctl -n hw.logicalcpu)
327-
make tests -j$(sysctl -n hw.logicalcpu)
328-
make misalign -j$(sysctl -n hw.logicalcpu)
329-
make tool -j$(sysctl -n hw.logicalcpu)
336+
make check $PARALLEL
337+
make tests $PARALLEL
338+
make misalign $PARALLEL
339+
make tool $PARALLEL
330340
if: ${{ always() }}
331341
- name: diverse configurations
332342
env:
333343
CC: ${{ steps.install_cc.outputs.cc }}
334344
run: |
335-
make distclean && make ENABLE_EXT_M=0 check -j$(sysctl -n hw.logicalcpu)
336-
make distclean && make ENABLE_EXT_A=0 check -j$(sysctl -n hw.logicalcpu)
337-
make distclean && make ENABLE_EXT_F=0 check -j$(sysctl -n hw.logicalcpu)
338-
make distclean && make ENABLE_EXT_C=0 check -j$(sysctl -n hw.logicalcpu)
339-
make distclean && make ENABLE_SDL=0 check -j$(sysctl -n hw.logicalcpu)
340-
make distclean && make ENABLE_Zicsr=0 check -j$(sysctl -n hw.logicalcpu)
341-
make distclean && make ENABLE_MOP_FUSION=0 check -j$(sysctl -n hw.logicalcpu)
342-
make distclean && make ENABLE_BLOCK_CHAINING=0 check -j$(sysctl -n hw.logicalcpu)
343-
make distclean && make ENABLE_Zba=0 check -j$(sysctl -n hw.logicalcpu)
344-
make distclean && make ENABLE_Zbb=0 check -j$(sysctl -n hw.logicalcpu)
345-
make distclean && make ENABLE_Zbc=0 check -j$(sysctl -n hw.logicalcpu)
346-
make distclean && make ENABLE_Zbs=0 check -j$(sysctl -n hw.logicalcpu)
347-
make distclean && make ENABLE_Zifencei=0 check -j$(sysctl -n hw.logicalcpu)
345+
make distclean && make ENABLE_EXT_M=0 check $PARALLEL
346+
make distclean && make ENABLE_EXT_A=0 check $PARALLEL
347+
make distclean && make ENABLE_EXT_F=0 check $PARALLEL
348+
make distclean && make ENABLE_EXT_C=0 check $PARALLEL
349+
make distclean && make ENABLE_SDL=0 check $PARALLEL
350+
make distclean && make ENABLE_Zicsr=0 check $PARALLEL
351+
make distclean && make ENABLE_MOP_FUSION=0 check $PARALLEL
352+
make distclean && make ENABLE_BLOCK_CHAINING=0 check $PARALLEL
353+
make distclean && make ENABLE_Zba=0 check $PARALLEL
354+
make distclean && make ENABLE_Zbb=0 check $PARALLEL
355+
make distclean && make ENABLE_Zbc=0 check $PARALLEL
356+
make distclean && make ENABLE_Zbs=0 check $PARALLEL
357+
make distclean && make ENABLE_Zifencei=0 check $PARALLEL
348358
if: ${{ always() }}
349359
- name: gdbstub test, need RV32 toolchain
350360
env:
351361
CC: ${{ steps.install_cc.outputs.cc }}
352362
run: |
353-
make distclean && make ENABLE_GDBSTUB=1 gdbstub-test -j$(sysctl -n hw.logicalcpu)
363+
make distclean && make ENABLE_GDBSTUB=1 gdbstub-test $PARALLEL
354364
if: ${{ always() }}
355365
- name: JIT test
356366
env:
357367
CC: ${{ steps.install_cc.outputs.cc }}
358368
run: |
359-
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
360-
make ENABLE_JIT=1 clean && make ENABLE_EXT_A=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
361-
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
362-
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
363-
make ENABLE_JIT=1 clean && make ENABLE_EXT_M=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
364-
make ENABLE_JIT=1 clean && make ENABLE_Zba=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
365-
make ENABLE_JIT=1 clean && make ENABLE_Zbb=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
366-
make ENABLE_JIT=1 clean && make ENABLE_Zbc=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
367-
make ENABLE_JIT=1 clean && make ENABLE_Zbs=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
368-
make ENABLE_JIT=1 clean && make ENABLE_Zicsr=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
369-
make ENABLE_JIT=1 clean && make ENABLE_Zifencei=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
370-
make ENABLE_JIT=1 clean && make ENABLE_MOP_FUSION=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
371-
make ENABLE_JIT=1 clean && make ENABLE_BLOCK_CHAINING=0 ENABLE_JIT=1 check -j$(sysctl -n hw.logicalcpu)
369+
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check $PARALLEL
370+
make ENABLE_JIT=1 clean && make ENABLE_EXT_A=0 ENABLE_JIT=1 check $PARALLEL
371+
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check $PARALLEL
372+
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check $PARALLEL
373+
make ENABLE_JIT=1 clean && make ENABLE_EXT_M=0 ENABLE_JIT=1 check $PARALLEL
374+
make ENABLE_JIT=1 clean && make ENABLE_Zba=0 ENABLE_JIT=1 check $PARALLEL
375+
make ENABLE_JIT=1 clean && make ENABLE_Zbb=0 ENABLE_JIT=1 check $PARALLEL
376+
make ENABLE_JIT=1 clean && make ENABLE_Zbc=0 ENABLE_JIT=1 check $PARALLEL
377+
make ENABLE_JIT=1 clean && make ENABLE_Zbs=0 ENABLE_JIT=1 check $PARALLEL
378+
make ENABLE_JIT=1 clean && make ENABLE_Zicsr=0 ENABLE_JIT=1 check $PARALLEL
379+
make ENABLE_JIT=1 clean && make ENABLE_Zifencei=0 ENABLE_JIT=1 check $PARALLEL
380+
make ENABLE_JIT=1 clean && make ENABLE_MOP_FUSION=0 ENABLE_JIT=1 check $PARALLEL
381+
make ENABLE_JIT=1 clean && make ENABLE_BLOCK_CHAINING=0 ENABLE_JIT=1 check $PARALLEL
372382
if: ${{ always() }}
373383
- name: undefined behavior test
374384
env:
375385
CC: ${{ steps.install_cc.outputs.cc }}
376386
if: ${{ env.CC == 'clang' && always() }} # gcc on macOS/arm64 does not support satinizers
377387
run: |
378-
make distclean && make ENABLE_UBSAN=1 check -j$(sysctl -n hw.logicalcpu)
379-
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 ENABLE_UBSAN=1 check -j$(sysctl -n hw.logicalcpu)
388+
make distclean && make ENABLE_UBSAN=1 check $PARALLEL
389+
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 ENABLE_UBSAN=1 check $PARALLEL
380390
- name: boot Linux kernel test
381391
env:
382392
CC: ${{ steps.install_cc.outputs.cc }}
383393
run: |
384-
make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 -j$(sysctl -n hw.logicalcpu) && \
385-
make ENABLE_SYSTEM=1 artifact -j$(sysctl -n hw.logicalcpu)
394+
make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 $PARALLEL && \
395+
make ENABLE_SYSTEM=1 artifact $PARALLEL
386396
.ci/boot-linux.sh
387397
make ENABLE_SYSTEM=1 clean
388398
if: ${{ always() }}

0 commit comments

Comments
 (0)