File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
jitType :
10
10
default : ' disable'
11
11
required : false
12
+ idleCpu :
13
+ default : ' false'
14
+ required : false
12
15
runs :
13
16
using : composite
14
17
steps :
45
48
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
46
49
-d opcache.jit=${{ inputs.jitType }} \
47
50
-d opcache.jit_buffer_size=16M \
48
- -j$(/usr/bin/nproc) \
51
+ ${{ inputs.idleCpu == 'true' && ' -j$(($( /usr/bin/nproc) - 1))' || '-j$(/usr/bin/nproc)' }} \
49
52
-g FAIL,BORK,LEAK,XLEAK \
50
53
--no-progress \
51
54
--offline \
Original file line number Diff line number Diff line change 22
22
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
23
23
-d opcache.jit=${{ inputs.jitType }} \
24
24
-d opcache.jit_buffer_size=16M \
25
- -j$(sysctl -n hw.ncpu) \
25
+ -j$(($( sysctl -n hw.ncpu) - 1) ) \
26
26
-g FAIL,BORK,LEAK,XLEAK \
27
27
--no-progress \
28
28
--offline \
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ jobs:
109
109
testArtifacts : ${{ matrix.branch.name }}_${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
110
110
runTestsParameters : >-
111
111
${{ matrix.run_tests_parameters }}
112
+ idleCpu : ${{ matrix.asan && 'true' || 'false' }}
112
113
- name : Test Tracing JIT
113
114
uses : ./.github/actions/test-linux
114
115
with :
You can’t perform that action at this time.
0 commit comments