Skip to content

Commit e8e52d4

Browse files
committed
add clang x64 test
1 parent 7b8f270 commit e8e52d4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if %errorlevel% neq 0 exit /b 3
2626
if "%THREAD_SAFE%" equ "0" set ADD_CONF=%ADD_CONF% --disable-zts
2727
if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INTRINSICS%
2828
if "%ASAN%" equ "1" set ADD_CONF=%ADD_CONF% --enable-sanitizer --enable-debug-pack
29+
if "%CLANG_TOOLSET%" equ "1" set ADD_CONF=%ADD_CONF% --with-toolset=clang
2930

3031
rem C4018: comparison: signed/unsigned mismatch
3132
rem C4146: unary minus operator applied to unsigned type

.github/workflows/test-suite.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,35 @@ jobs:
962962
run: .github/scripts/windows/build.bat
963963
- name: Test
964964
run: .github/scripts/windows/test.bat
965+
WINDOWS_CLANG:
966+
if: ${{ fromJson(inputs.branch).jobs.WINDOWS }}
967+
name: "WINDOWS_X64_ZTS_CLANG"
968+
runs-on: windows-2022
969+
env:
970+
PHP_BUILD_CACHE_BASE_DIR: C:\build-cache
971+
PHP_BUILD_OBJ_DIR: C:\obj
972+
PHP_BUILD_CACHE_SDK_DIR: C:\build-cache\sdk
973+
PHP_BUILD_SDK_BRANCH: php-sdk-2.5.0
974+
PHP_BUILD_CRT: ${{ fromJson(inputs.branch).jobs.WINDOWS.config.vs_crt_version }}
975+
PLATFORM: x64
976+
THREAD_SAFE: "1"
977+
INTRINSICS: "AVX2"
978+
PARALLEL: -j2
979+
OPCACHE: "1"
980+
CLANG_TOOLSET: "1"
981+
steps:
982+
- name: git config
983+
run: git config --global core.autocrlf false && git config --global core.eol lf
984+
- name: git checkout
985+
uses: actions/checkout@v6
986+
with:
987+
ref: ${{ fromJson(inputs.branch).ref }}
988+
- name: Setup
989+
uses: ./.github/actions/setup-windows
990+
- name: Build
991+
run: .github/scripts/windows/build.bat
992+
- name: Test
993+
run: .github/scripts/windows/test.bat
965994
FREEBSD:
966995
if: ${{ fromJson(inputs.branch).jobs.FREEBSD }}
967996
strategy:

0 commit comments

Comments
 (0)