Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Install re2c
run: sudo apt-get install -y re2c
- name: Checkout mailparse
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -35,18 +35,18 @@ jobs:
shell: cmd
strategy:
matrix:
version: ["7.4", "8.0"]
arch: [x64, x86]
version: ["8.2", "8.3"]
arch: [x64]
ts: [ts]
runs-on: windows-latest
runs-on: windows-2019
steps:
- name: Configure Git
run: git config --global core.autocrlf false
- name: Checkout mailparse
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
id: setup-php
uses: cmb69/setup-php-sdk@v0.2
uses: php/setup-php-sdk@v0.8
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
Expand All @@ -59,8 +59,18 @@ jobs:
- name: phpize
run: phpize
- name: configure
run: configure --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
run: configure --enable-test-ini --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: patch test ini
run: |
if "${{matrix.arch}}"=="x64" (
set my_ini_file=x64\Release_TS\tmp-php.ini
) else (
set my_ini_file=Release_TS\tmp-php.ini
)
set mbstring=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll
sed -i "1s/^/extension=%mbstring:\=\\\%\n/" %my_ini_file%
type %my_ini_file%
- name: test
run: nmake test TESTS="-d extension=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll --show-diff tests"
run: nmake test TESTS="--show-diff tests"