From 745d02853bafab1f6e5ce8a49604d6eef147d007 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 1 Nov 2026 21:51:41 +0100 Subject: [PATCH 1/3] Use latest stable ev instead of ev-beta ev-beta selects the newest release marked beta on PECL, which is the outdated 1.1.6RC1, while stable 1.2.x releases are available. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03406e3..c7eb14a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: uv-amphp/ext-uv@0.3.x, ev-beta, event, :xdebug + extensions: uv-amphp/ext-uv@0.3.x, ev, event, :xdebug env: # Workaround for https://github.com/shivammathur/setup-php/issues/1146 (cd "" fails on bash 5.3) UV_PATH: . From 6b8212ea9ea913b4282a451ebe2116e916183381 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 1 Nov 2026 22:15:13 +0100 Subject: [PATCH 2/3] Install ev using PIE PECL's newest ev release is 1.2.3, while 1.2.4 is published on Packagist as osmanov/pecl-ev. Install it with PIE instead of setup-php's PECL handling. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7eb14a..0cc9928 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,11 +65,19 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: uv-amphp/ext-uv@0.3.x, ev, event, :xdebug + extensions: uv-amphp/ext-uv@0.3.x, event, :xdebug + tools: pie env: # Workaround for https://github.com/shivammathur/setup-php/issues/1146 (cd "" fails on bash 5.3) UV_PATH: . + - name: Install ev + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pie install osmanov/pecl-ev + php --ri ev + - name: Get Composer cache directory id: composer-cache run: echo "dir=$(composer config cache-dir)" >> "$GITHUB_OUTPUT" From 48741d8a64db0ad21b1b82899afc89c3f56105dd Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 1 Nov 2026 22:22:13 +0100 Subject: [PATCH 3/3] Run PIE with sudo in CI PIE refuses to elevate privileges itself in a non-interactive terminal. GitHub runners have passwordless sudo, so run PIE as root directly. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cc9928..16b7ec6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - pie install osmanov/pecl-ev + # PIE refuses to call sudo itself in a non-interactive terminal, but the runner has passwordless sudo + sudo --preserve-env=GITHUB_TOKEN pie install osmanov/pecl-ev php --ri ev - name: Get Composer cache directory