Skip to content

Commit 58cfd6f

Browse files
committed
php versions
1 parent 8c767c3 commit 58cfd6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GitHub Actions Demo
1+
name: Test extension
22
on: [push]
33
env:
44
SECP256K1_REMOTE: "https://github.com/bitcoin-core/secp256k1.git"
@@ -8,13 +8,17 @@ env:
88
jobs:
99
test:
1010
runs-on: ubuntu-18.04
11+
strategy:
12+
matrix:
13+
operating-system: [ubuntu-latest]
14+
php-versions: ['7.2', '7.3', '7.4']
1115
steps:
1216
- name: Checkout code
1317
uses: actions/checkout@v2
1418
- name: Setup PHP
1519
uses: shivammathur/setup-php@v2
1620
with:
17-
php-version: 7.4
21+
php-version: ${{ matrix.php-versions }}
1822
- run: cd /tmp && git clone ${SECP256K1_REMOTE} libsecp256k1 && cd libsecp256k1 && git checkout efad3506a8937162e8010f5839fdf3771dfcf516 && ./autogen.sh && ./configure --enable-tests=no --enable-benchmark=no --enable-experimental --enable-module-ecdh --enable-module-recovery --enable-module-schnorrsig --enable-module-extrakeys && make -j$(nproc) && sudo make install
1923
- run: cd secp256k1 && php -v && phpize && ./configure --with-secp256k1-config --with-module-recovery --with-module-ecdh --with-module-schnorrsig --with-module-extrakeys && make -j$(nproc) && sudo make install
2024
- run: composer update

0 commit comments

Comments
 (0)