[PECL-CVS] [pecl-database-ibm_db2] ci-update: Avoid the manual steps and use the automatic builder
[email protected] (Calvin Buckley) Thu, 16 Jul 2026 17:58:39 +0000
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Calvin Buckley (NattyNarwhal)
Date: 2026-07-16T14:58:33-03:00
Commit: https://github.com/php/pecl-database-ibm_db2/commit/3b8727bc7a12af482330dcb23a2de1de3b1c3993
Raw diff: https://github.com/php/pecl-database-ibm_db2/commit/3b8727bc7a12af482330dcb23a2de1de3b1c3993.diff
Avoid the manual steps and use the automatic builder
Changed paths:
M .github/workflows/ci.yml
Diff:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7973d44..e66a93a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -123,24 +123,13 @@ jobs:
run: |
Invoke-WebRequest -Uri 'https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip' -OutFile 'ntx64_odbc_cli.zip'
Expand-Archive 'ntx64_odbc_cli.zip' -DestinationPath '.\'
- - name: Setup PHP
- id: setup-php
- uses: php/php-windows-builder/php@v1
- with:
- php-version: ${{matrix.version}}
- arch: ${{matrix.arch}}
- ts: ${{matrix.ts}}
- - name: Enable Developer Command Prompt
- uses: ilammy/msvc-dev-cmd@v1
+ # The builder handles building, testing and artifact packaging/upload automatically
+ - name: Build and test the extension
+ uses: php/php-windows-builder/extension@v1
with:
- arch: ${{matrix.arch}}
- toolset: ${{steps.setup-php.outputs.toolset}}
- - name: phpize
- run: phpize
- - name: configure
- run: configure --with-ibm_db2=%cd%\clidriver --with-prefix=${{steps.setup-php.outputs.prefix}}
- - name: make
- run: nmake
- # XXX: Can we run Docker containers in a Windows runner? That'll be required for tests
- #- name: test
- # run: nmake test TESTS=tests
+ php-version: ${{ matrix.php-version }}
+ arch: ${{ matrix.arch }}
+ ts: ${{ matrix.ts }}
+ args: --with-ibm_db2=%cd%\clidriver --with-prefix=${{steps.setup-php.outputs.prefix}}
+ run-tests: false # need to have db2 running!
+ test-runner-args: "--show-diff tests"