Skip to content

Commit ee1e4ee

Browse files
authored
ci: windows mongodb extension (#6111)
1 parent 37bf924 commit ee1e4ee

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,16 @@ jobs:
879879
with:
880880
php-version: ${{ matrix.php }}
881881
tools: pecl, composer
882-
extensions: intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
882+
extensions: intl, bcmath, curl, openssl, mbstring, pdo_sqlite
883883
coverage: none
884884
ini-values: memory_limit=-1
885+
# Not in pecl
886+
- name: Setup mongodb
887+
run: |
888+
curl -sLO https://github.com/mongodb/mongo-php-driver/releases/download/1.17.2/php_mongodb-1.17.2-8.3-nts-x64.zip
889+
unzip -q php_mongodb-1.17.2-8.3-nts-x64.zip php_mongodb.dll
890+
mv php_mongodb.dll C:\tools\php\ext
891+
echo "extension=php_mongodb.dll" >> C:\tools\php\php.ini
885892
- name: Get composer cache directory
886893
id: composercache
887894
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@@ -923,9 +930,16 @@ jobs:
923930
with:
924931
php-version: ${{ matrix.php }}
925932
tools: pecl, composer
926-
extensions: intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
933+
extensions: intl, bcmath, curl, openssl, mbstring, pdo_sqlite
927934
coverage: none
928935
ini-values: memory_limit=-1
936+
# Not in pecl
937+
- name: Setup mongodb
938+
run: |
939+
curl -sLO https://github.com/mongodb/mongo-php-driver/releases/download/1.17.2/php_mongodb-1.17.2-8.3-nts-x64.zip
940+
unzip -q php_mongodb-1.17.2-8.3-nts-x64.zip php_mongodb.dll
941+
mv php_mongodb.dll C:\tools\php\ext
942+
echo "extension=php_mongodb.dll" >> C:\tools\php\php.ini
929943
- name: Get composer cache directory
930944
id: composercache
931945
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)