From df2e09d3c2246be1740b9365c0c94de6efcf5656 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 20 Nov 2024 13:47:20 -0500 Subject: [PATCH] php-8.4-pecl-sqlsrv - use git checkout, enable updates --- php-8.4-pecl-sqlsrv.yaml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/php-8.4-pecl-sqlsrv.yaml b/php-8.4-pecl-sqlsrv.yaml index 4f4fc2ed955..0bd10d149ab 100644 --- a/php-8.4-pecl-sqlsrv.yaml +++ b/php-8.4-pecl-sqlsrv.yaml @@ -20,6 +20,7 @@ environment: packages: - autoconf - automake + - bash - binutils - build-base - busybox @@ -32,23 +33,32 @@ environment: - unixodbc-dev pipeline: - - uses: fetch + - uses: git-checkout with: - uri: https://pecl.php.net/get/sqlsrv-${{package.version}}.tgz - expected-sha256: a9ebb880b2a558d3d6684f6e6802c53c5bffa49e1ee60d1473a7124fc9cb72ad + repository: https://github.com/microsoft/msphpsql + tag: "v${{package.version}}" + expected-commit: 98ff5a8bd4c022cc15664f1478fab2d7629262da - - uses: pecl/phpize + - runs: | + cd source + bash ./packagize.sh - - uses: autoconf/make + - working-directory: source/sqlsrv + uses: pecl/phpize - - uses: pecl/install + - working-directory: source/sqlsrv + uses: autoconf/make + + - working-directory: source/sqlsrv + uses: pecl/install with: extension: "sqlsrv" - uses: strip update: - enabled: false - exclude-reason: > - TODO(vaikas): I can find the releases in github but building it does not work with fetching from there like it does when you use fetch. Also seems like I can't watch the github repo for new releases, yet use the fetch above together? - + enabled: true + github: + identifier: microsoft/msphpsql + strip-prefix: v + tag-filter: v