@@ -41,117 +41,69 @@ env:
41
41
CC : ccache gcc
42
42
CXX : ccache g++
43
43
jobs :
44
- LINUX_X64 :
45
- strategy :
46
- fail-fast : false
47
- matrix :
48
- include :
49
- - debug : true
50
- zts : false
51
- - debug : false
52
- zts : true
53
- name : " LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
54
- runs-on : ubuntu-20.04
44
+ MACOS_ARM64_DEBUG_ZTS :
45
+ runs-on : macos-12
55
46
steps :
56
47
- name : git checkout
57
48
uses : actions/checkout@v4
58
- - name : Create MSSQL container
59
- uses : ./.github/actions/setup-mssql
60
- - name : Create Oracle container
61
- uses : ./.github/actions/setup-oracle
62
- - name : Setup Caddy server
63
- uses : ./.github/actions/setup-caddy
64
- - name : apt
65
- uses : ./.github/actions/apt-x64
66
- - name : ccache
67
- uses : hendrikmuhs/ccache-action@v1.2
68
- with :
69
- # This duplicates the "job.name" expression above because
70
- # GitHub has no way to query the job name (github.job is the
71
- # job id, not the job name)
72
- key : " LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}"
73
- append-timestamp : false
49
+ - name : brew
50
+ uses : ./.github/actions/brew
74
51
- name : ./configure
75
- uses : ./.github/actions/configure-x64
52
+ uses : ./.github/actions/configure-macos
76
53
with :
77
- configurationParameters : >-
78
- --${{ matrix.debug && 'enable' || 'disable' }}-debug
79
- --${{ matrix.zts && 'enable' || 'disable' }}-zts
54
+ configurationParameters : --enable-debug --enable-zts
80
55
- name : make
81
- run : make -j$(/usr/bin/nproc) >/dev/null
56
+ run : |-
57
+ export PATH="/usr/local/opt/bison/bin:$PATH"
58
+ make -j$(sysctl -n hw.logicalcpu) >/dev/null
82
59
- name : make install
83
- uses : ./.github/actions/install-linux
84
- - name : Setup
85
- uses : ./.github/actions/setup-x64
86
- - name : Test
87
- uses : ./.github/actions/test-linux
88
- with :
89
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
60
+ run : sudo make install
90
61
- name : Test Tracing JIT
91
- uses : ./.github/actions/test-linux
92
- with :
93
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
94
- jitType : tracing
95
- runTestsParameters : >-
96
- -d zend_extension=opcache.so
97
- -d opcache.enable_cli=1
98
- - name : Verify generated files are up to date
99
- uses : ./.github/actions/verify-generated-files
100
- MACOS_DEBUG_NTS :
101
- runs-on : macos-12
62
+ run : |
63
+ set -x
64
+ export SKIP_IO_CAPTURE_TESTS=1
65
+ export CI_NO_IPV6=1
66
+ export TEST_PHP_JUNIT=junit.out.xml
67
+ sapi/cli/php run-tests.php -P -q \
68
+ -d opcache.jit=tracing \
69
+ -d opcache.jit_buffer_size=16M \
70
+ -j$(($(sysctl -n hw.ncpu) - 1)) \
71
+ -g FAIL,BORK,LEAK,XLEAK \
72
+ --no-progress \
73
+ --offline \
74
+ --show-diff \
75
+ --show-slow 1000 \
76
+ --set-timeout 120
77
+ MACOS_X64_DEBUG_ZTS :
78
+ runs-on : macos-11
102
79
steps :
103
80
- name : git checkout
104
81
uses : actions/checkout@v4
105
82
- name : brew
106
83
uses : ./.github/actions/brew
107
- - name : ccache
108
- uses : hendrikmuhs/ccache-action@v1.2
109
- with :
110
- key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
111
- append-timestamp : false
112
84
- name : ./configure
113
85
uses : ./.github/actions/configure-macos
114
86
with :
115
- configurationParameters : --enable-debug --disable -zts
87
+ configurationParameters : --enable-debug --enable -zts
116
88
- name : make
117
89
run : |-
118
90
export PATH="/usr/local/opt/bison/bin:$PATH"
119
91
make -j$(sysctl -n hw.logicalcpu) >/dev/null
120
92
- name : make install
121
93
run : sudo make install
122
94
- name : Test Tracing JIT
123
- uses : ./.github/actions/test-macos
124
- with :
125
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
126
- jitType : tracing
127
- runTestsParameters : >-
128
- -d zend_extension=opcache.so
129
- -d opcache.enable_cli=1
130
- -d opcache.protect_memory=1
131
- - name : Verify generated files are up to date
132
- uses : ./.github/actions/verify-generated-files
133
- WINDOWS :
134
- name : WINDOWS_X64_ZTS
135
- runs-on : windows-2019
136
- env :
137
- PHP_BUILD_CACHE_BASE_DIR : C:\build-cache
138
- PHP_BUILD_OBJ_DIR : C:\obj
139
- PHP_BUILD_CACHE_SDK_DIR : C:\build-cache\sdk
140
- PHP_BUILD_SDK_BRANCH : php-sdk-2.2.0
141
- PHP_BUILD_CRT : vs16
142
- PLATFORM : x64
143
- THREAD_SAFE : " 1"
144
- INTRINSICS : AVX2
145
- PARALLEL : -j2
146
- OPCACHE : " 1"
147
- steps :
148
- - name : git config
149
- run : git config --global core.autocrlf false && git config --global core.eol lf
150
- - name : git checkout
151
- uses : actions/checkout@v4
152
- - name : Setup
153
- uses : ./.github/actions/setup-windows
154
- - name : Build
155
- run : .github/scripts/windows/build.bat
156
- - name : Test
157
- run : .github/scripts/windows/test.bat
95
+ run : |
96
+ set -x
97
+ export SKIP_IO_CAPTURE_TESTS=1
98
+ export CI_NO_IPV6=1
99
+ export TEST_PHP_JUNIT=junit.out.xml
100
+ sapi/cli/php run-tests.php -P -q \
101
+ -d opcache.jit=tracing \
102
+ -d opcache.jit_buffer_size=16M \
103
+ -j$(($(sysctl -n hw.ncpu) - 1)) \
104
+ -g FAIL,BORK,LEAK,XLEAK \
105
+ --no-progress \
106
+ --offline \
107
+ --show-diff \
108
+ --show-slow 1000 \
109
+ --set-timeout 120
0 commit comments