@@ -30,44 +30,22 @@ jobs:
3030 export TEST_PHP_ARGS="-n -d extension=mbstring.so -d extension=modules/mailparse.so"
3131 php run-tests.php -P --show-diff tests
3232 windows :
33- defaults :
34- run :
35- shell : cmd
3633 strategy :
37- fail-fast : false
3834 matrix :
39- version : ["8.1", "8.2", "8.3", "8.4", "8.5"]
40- arch : [x64, x86]
41- ts : [ts, nts ]
42- runs-on : windows-latest
35+ php- version : ["8.1", "8.2", "8.3", "8.4", "8.5"]
36+ arch : [x64, x86]
37+ ts : [nts, ts ]
38+ runs-on : windows-2022
4339 steps :
4440 - name : Checkout mailparse
45- uses : actions/checkout@v4
46- - name : Setup PHP
47- id : setup-php
48- uses : php/setup-php-sdk@fix/invoke-webrequest-tls
49- with :
50- version : ${{matrix.version}}
51- arch : ${{matrix.arch}}
52- ts : ${{matrix.ts}}
53- - name : Enable Developer Command Prompt
54- uses : ilammy/msvc-dev-cmd@v1
55- with :
56- arch : ${{matrix.arch}}
57- toolset : ${{steps.setup-php.outputs.toolset}}
58- - name : phpize
59- run : phpize
60- - name : configure
61- run : configure --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
62- - name : make
63- run : nmake
64- - name : test
65- run : |
66- set PATH=%PATH%;${{steps.setup-php.outputs.prefix}}\ext
67- nmake test TESTS="-d extension=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll --show-diff tests"
68- - name : Upload DLL
69- if : always()
70- uses : actions/upload-artifact@v4
41+ uses : actions/checkout@v6
42+ # The builder handles building, testing and artifact packaging/upload automatically
43+ - name : Build and test the extension
44+ uses : php/php-windows-builder/extension@v1
7145 with :
72- name : php_mailparse-${{matrix.version}}-${{matrix.arch}}-${{matrix.ts}}
73- path : " **/php_mailparse.dll"
46+ php-version : ${{ matrix.php-version }}
47+ arch : ${{ matrix.arch }}
48+ ts : ${{ matrix.ts }}
49+ args : --enable-mailparse --enable-debug-pack
50+ run-tests : true
51+ test-runner-args : " --show-diff tests"
0 commit comments