Skip to content

Commit f2b9ab6

Browse files
domr@qq.comdomr@qq.com
authored andcommitted
Check published PHP extension profiles and PDO on WSL2
1 parent 469ed8e commit f2b9ab6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/jit/run_published.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from urllib.request import Request, urlopen
1313

1414
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
15-
from php_binary import current_jit_profile
15+
from php_binary import current_jit_profile, verify_runtime
1616
from php_releases import MANIFEST, validate_manifest
1717

1818
base = 'https://download.workerman.net/php/'
@@ -50,6 +50,7 @@ def fetch(name, limit=80 * 1024 * 1024):
5050
cli = root / ('php' + branch)
5151
cli.write_bytes(binary)
5252
cli.chmod(0o755)
53+
verify_runtime(cli, version)
5354
cli_report = results / (branch + '-cli.json')
5455
profile = ['--without-swoole'] if branch == '8.6' else []
5556
subprocess.run(['python3', str(Path(__file__).with_name('run_checks.py')), '--php', str(cli),

‎.github/workflows/test-published-jit.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Test public static PHP JIT on WSL2
22

33
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- .github/workflows/test-published-jit.yml
8+
- .github/jit/run_published.py
49
workflow_run:
510
workflows: [Build Self-Hosted PHP Binary (Unix)]
611
types: [completed]
@@ -11,7 +16,7 @@ permissions:
1116

1217
jobs:
1318
wsl:
14-
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
19+
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
1520
runs-on: windows-2025
1621
timeout-minutes: 25
1722
steps:

0 commit comments

Comments
 (0)